if( /^$LookFor$/ ) { # true if $_ contains a matching file name ... }