I came across this line of code:
if( -f ) { ... }
-f appears to test whether the filename exists or not, but I am
-f
Look for Perl file test operators.