I have Perl script and need to determine the full path and filename of the script during execution. I discovered that depending on how you call the script $0 va
$0
What's wrong with $^X ?
$^X
#!/usr/bin/env perl print "This is executed by $^X\n";
Would give you the full path to the Perl binary being used.
Evert