I am trying to invoke a script from within a perl script.
I can see 2 ways of doing this..
using ./somescript or specifying the full directory path. Neither is ideal, since “./” will only work as long as the invoker cd’s into the directory. Full path, is not relative but absolute. Anyway around this? thanks
Use
FindBinmodule if you want find directory where your original script is, and useCwdif you want to find your current working directory.