in reply to
Match a string only once in a file
If you want to keep the code you have, try adding "last;" after the push.
PCS
Comment on
Re: Match a string only once in a file
Replies are listed 'Best First'.
Re^2: Match a string only once in a file
by
tall_man
(Parson)
on Mar 08, 2005 at 00:44 UTC
That doesn't work at all. I think you must have misread the problem statement.
[reply]
In Section
Seekers of Perl Wisdom