Hello, ++toolic already pointed out the error in your code. Here are a couple of other observations:
for my $file (@files) { # Perl will exit the loop when the array has been processed }
use File::Path 'remove_tree'; for my $file (@files) { unlink($file) if -f $file; remove_tree($file) if -d $file; }
Hope this helps!
In reply to Re: Parallel::ForkManager for any array
by 1nickt
in thread Parallel::ForkManager for any array
by MissPerl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |