Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Re: Extracting Text Linesby Cine (Friar) |
on Jul 31, 2003 at 15:14 UTC ( [id://279605]=note: print w/replies, xml ) | Need Help?? |
print <FILE>;This wont do as you expect it to do. print puts is argument in list context, and a file handle in list context returns all the lines in the files. Thus you would print the remainder of the file after having found your line. T I M T O W T D I
In Section
Seekers of Perl Wisdom
|
|