![]() |
|
Do you know where your variables are? | |
PerlMonks |
Re^4: Introsepcting the current Perl file via DATA, even w/o DATA?by Anonymous Monk |
on Feb 05, 2016 at 02:28 UTC ( #1154461=note: print w/replies, xml ) | Need Help?? |
To clarify, the source filter thing should work, and maybe there is a way to make the file to stick around after BEGIN (without __DATA__), but in my opinion that's a bit too obscure and I don't see anything particularly complex or performance-intensive in just opening it again... but YMMV.
In Section
Seekers of Perl Wisdom
|
|