I'm used to `... or die ".. failed... $!";.
I was surprised to find that in order to know if File::Path::remove_tree
failed or not I must do something like this:
remove_tree( 'foo/bar', 'bar/rat', {error => \my $err} );
if (@$err) {
die "error..."
}
Am I missing something? Is this really the way to go?
A lot of unneeded code for me...