Think about Loose Coupling | |
PerlMonks |
Finding the second line an item appears onby Anonymous Monk |
on Oct 27, 2003 at 16:32 UTC ( [id://302423]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks, Just a quick task i need help with as i dont know how to do it. I need to be able to read each line in a file until a word for the second time.
do { $_ = <> } until /formulae/; Is what i have so far, which finds the first 'formulae' word. I need to be able to find the second... Ne Ideas? Cheers, Steve 20031027 Edit by Corion: Changed title from 'second match...'
Back to
Seekers of Perl Wisdom
|
|