in reply to Re: Reading the script code from itself
in thread Reading the script code from itself
Anyway your constants live in the STASH of your package and you seem to have a clear naming convention...
....so just grep {/^MM/} keys %YourPkg:: to find those symbols.
Introspection is always better than parsing code!
HTH! :)
Cheers Rolf
( addicted to the Perl Programming Language)
example:
DB<110> $a=3 => 3 DB<111> grep /^a/,keys %main:: => ("a", "attributes::")
|
|---|