# get the filename my $filename = "dir+filename"; # check if file exist if(-e $filename){