I came across this line of code:
if( -f <filename> ) { ... }
-f appears to test whether the filename exists or not, but I am not sure. Googling has not helped so far (it is hard to Google for “-f”) and neither have my Perl books.
Can anyone please advise?
See perlfunc.
It lists all the Perl built-in functions, including the “file test” ones:
Where
-Xis one of the following: