in reply to jar like feature

Use the FindBin core module to get rid of absolute paths. From the docs: "Locates the full path to the script bin directory to allow the use of paths relative to the bin directory."