Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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?
Jar. Jar!...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2017-07-23 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (346 votes). Check out past polls.