in reply to What does -f mean

-f tests its right-hand argument to see if it's a file. You can read about it in the Perl documentation in the Functions section under -X. In this case -X is just symbolic of all the different "dash whatever" tests. Here's a link: -X.

Basically it returns true if the argument is a name of a real file in your current working directory, and false if not.


Dave