in reply to Pattern Match in @array

You could use this:
#!/usr/bin/perl -w use strict; my @arr = qw( file1 file2 file3 filename ); print "ha!\n" unless grep /^filename$/, @arr;


See also the '-e' operator -- you don't have to list a directory to check if a file exists.

-mk