How do I get the full path to a Perl script that is executing?
There are a few ways: $0 is the currently executing script as provided by POSIX, relative to the current working directory if the script is at or below the CWD Additionally, cwd(), getcwd() and abs_path() are provided by the Cwd module and tell you where the script is being run from The module FindBin provides … Read more