in reply to Detection of main script / libraries
or just use: $0 for the filename.use FindBin (); # get actual path of this script print "Path of script is: $FindBin::Bin\n"; # no namespace pollution
Otherwise, you could set a global Variable in the main-package (e.g. assign $0 to it) and ask it in every packages BEGIN-Block if it is already defined...
Best regards,
perl -le "s==*F=e=>y~\*martinF~stronat~=>s~[^\w]~~g=>chop,print"
|
|---|