The shebang mechanism does put the interpreted script in argv[1] (to use the common c name), so yes, if what's mean by "real file" is the file in the target language, $ARGV[0] should be used in the interpreter.
In reply to Re^3: perl script used as sh-bang
by gaal
in thread perl script used as sh-bang
by szabgab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |