in reply to Re: Question about reading specific line in a text file
in thread Question about reading specific line in a text file
Actually, you only need one control statement if you know exactly the line number you want to process, by using $. aka $INPUT_LINE_NUMBER in English.
while (<DATAFILE3>) { $line = $_, last if $. == 76; }
Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!
|
---|
In Section
Seekers of Perl Wisdom