I found the answer to '-f or -d' here: http://perldoc.perl.org/functions/-X.html
In reply to Re^2: shebang arguments by pc0019 in thread shebang arguments by pc0019