in reply to get current script as text
__FILE__ site:perldoc.perl.org
BEGIN { use File::Spec; use File::Basename qw' dirname '; our $thisf = File::Spec->rel2abs(__FILE__); our $thisd = dirname($thisf); }
Then read $thisf if its available, say using File::Slurp or whatever
|
|---|