Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: System command not working

by jwkrahn (Abbot)
on Jul 10, 2012 at 09:50 UTC ( [id://980845]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -ne 'print if $. >= 17 && $. <= 30' infile.txt > output.txt
    
  2. or download this
    perl -ne 'print if 17 .. 30' infile.txt > output.txt
    
  3. or download this
    open INFILE,  '<', $inFile  or die "Can't open $inFile : $!";
    open OUTFILE, '>', $outFile or die "Can't open $outFile : $!"; 
    ...
    close INFILE or die "can't close $inFile : $!"; 
    close OUTFILE or die "can't close $outFile : $!";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://980845]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-23 21:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found