if(-e $filename) { print "$filename exists"; }