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
In reply to Re: System command not working
by kcott
in thread System command not working
by muchyog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |