in reply to System command not working
You can see what's happening on the commandline like this:
$ perl -MO=Deparse,p -ne 'print if $. >= 17 && $. <= 30' LINE: while (defined($_ = <ARGV>)) { print $_ if $. >= 17 and $. <= 30; } -e syntax OK
Now that the while loop has been revealed, you can use this code as the basis of your script.
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: System command not working
by muchyog (Novice) on Jul 10, 2012 at 06:52 UTC | |
by kcott (Archbishop) on Jul 10, 2012 at 07:51 UTC | |
by aitap (Curate) on Jul 10, 2012 at 07:19 UTC | |
by monsoon (Pilgrim) on Jul 10, 2012 at 15:04 UTC | |
by Jim (Curate) on Jul 10, 2012 at 22:00 UTC |