in reply to Reading the script code from itself
Thank you!
What I need is to get the list of defined constants to make their names exportable:
So, I want to make those constants exportable on demand. I just don't want to make lists for @MM_zaloopa, @MM_herovina and @MM_poeben by hands, as I don't want the constant name to be entered twice (once when I'm declaring the constant and twice when I'm adding the name to the list of exportable names). So I want this list to be made automatically, by the script itself. :)%EXPORT_TAGS = ( zaloopa => \@MM_zaloopa, herovina => \@MM_herovina, poeben => \@MM_poeben );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reading the script code from itself (STASH introspection)
by LanX (Saint) on May 28, 2014 at 13:36 UTC |