The stupid question is the question not asked | |
PerlMonks |
Re: remove_tree dies even when trapped with evalby choroba (Cardinal) |
on Jun 12, 2015 at 15:30 UTC ( [id://1130211]=note: print w/replies, xml ) | Need Help?? |
Does the script really die because of that? I ran the following in one terminal:
And while it was running, I ran the following in the same directory in the second terminal:
I got the error message you mentioned, but "FINISHED" was printed, too, so the program didn't die. The documentation is somehow unclear on this: If make_path or remove_tree encounter an error, a diagnostic message will be printed to STDERR via carp (for non-fatal errors), or via croak (for fatal errors).If you just want to avoid the message, you can use the documented error option:
Which returns:
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
In Section
Seekers of Perl Wisdom
|
|