in reply to how to stop command
my $file; my @file_list; foreach $file(@file_list){ print "$file\n"; }
This will achieve nothing, ever. @file_list is empty so the loop will not be entered. Is this the source of your confusion? If so, declare @file_list before the eval instead and then don't re-declare it inside.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to stop command
by dideod.yang (Sexton) on Jul 22, 2018 at 10:29 UTC | |
by hippo (Archbishop) on Jul 22, 2018 at 10:52 UTC |