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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2016-07-24 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (221 votes). Check out past polls.