Dear colleagues,
I'd be very grateful for your suggestions and ideas on a task.
# :zaloopa use constant MMConst1 => 1; use constant MMConst2 => 2; use constant MMConst3 => 3; my @MM_zaloopa = qw( MMConst1 MMConst2 MMConst3 );
In other words, I need to get a list of constants I've declared after the last occurence of /^# :(\S+)$/ in the code. How can I get lines of the script's code?
Opening the __FILE__, seeking the __LINE__? Sounds okay, but are there any other options?
Thank you!
In reply to Reading the script code from itself by v_melnik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |