SyntaxFix
Write A Post
Hire A Developer
Questions
I think the module you're looking for is FindBin:
#!/usr/bin/perl use FindBin; $0 = "stealth"; print "The actual path to this is: $FindBin::Bin/$FindBin::Script\n";