The following snippet will put the code of the current top-level script into a variable:
my $codeAsText = do{ local( @ARGV, $/ ) = $0; <>; };
In reply to Re: get current script as text
by BrowserUk
in thread get current script as text
by vlad_tepesch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |