> Is it correct to fix it this way: > run_command($cmd, errmsg => "rbd snapshot $volname to $snap' error", > errfunc => sub { print STDERR shift; }); looks reasonable - but you need to test that.