in reply to Re^2: perl script used as sh-bang
in thread perl script used as sh-bang
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.
|
|---|