in reply to Re: Answer: How do I delete/modify one line from test file ?
in thread How do I delete/modify one line from test file ?
well, if you're pushing the line you don't want onto the array, it's going to end up in the array. It might help to think of another way of doing the same thing:
push @array, $line unless $line eq 'b|b';
Read the fine manual! => perldoc -f push
Philosophy can be made out of anything. Or less -- Jerry A. Fodor
In Section
Seekers of Perl Wisdom