Print variables not found in "unless -e" statement
09:52 18 Nov 2014

I have this line of code:

unless((-e $FileOne) && (-e $Filetwo) && (-e $FileThree)) {die "$!\n";}

where, the "$" scalar variables contain file names with full paths.

This statement checks if all the 3 files are present, else, it will die.

Is there any Perl 'Special Variable' that I could use in the die statement that would let me know which out of the three files are missing (i.e., which out of the three -e checks have failed)?

perl