in reply to Faking Script Names
{ local $0 = '/old/path/to/file.pl'; print "$0\n"; #<-- your code here } [download]