Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Obtaining header from file (first line) - printing to output file

by gurpreetsingh13 (Scribe)
on Jul 17, 2012 at 06:30 UTC ( #982145=note: print w/ replies, xml ) Need Help??


in reply to Re: Obtaining header from file (first line) - printing to output file
in thread Obtaining header from file (first line) - printing to output file

or simply pumping in the entire file once(though not a good practice) and then filtering the first line.

my @filelines=`cat $input_file`;print OUTFILE $filelines[0];


Comment on Re^2: Obtaining header from file (first line) - printing to output file
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2014-12-17 23:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (40 votes), past polls