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
There's no need to use external modules, with just one line you can have the file name and relative path. If you are using modules and need to apply a path relative to the script directory, the relative path is enough.