__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
In reply to Re: get current script as text
by Anonymous Monk
in thread get current script as text
by vlad_tepesch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |