in reply to Parallel::ForkManager for any array
Tip #1 from the Basic debugging checklist: use warnings
You will see a warning message
You should change:Unquoted string "i" may clash with future reserved word at ...
to:system ("rm", "-fr", $files[i]);
If you use Tip #6 from the Basic debugging checklist (B::Deparse), you will see how Perl interprets your code:system ("rm", "-fr", $files[$i]);
system 'rm', '-fr', $files[0];
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Parallel::ForkManager for any array
by MissPerl (Sexton) on Oct 16, 2018 at 13:51 UTC |
In Section
Seekers of Perl Wisdom