in reply to Pattern Match in @array

The syntax you'd want would be something like:
@array = ('bla', 'alb', 'lab'); foreach (@array) {print unless /la/};
And to open a file, simply open it in write mode (by adding '>')

Jouke Visser, Perl 'Adept'
Using Perl to help the disabled: pVoice and pStory