yes, I knew I can count on your collaboration! ;)
> Now, the thing is, you have to set $^P before the file (test.pm in this case) is even opened.
I think one could trick that², the question is rather about other penalties included.
... let's have a look into perlvar#$^P ...
x400 Save source code lines into @{"_<$filename"} .
OK this doesn't look to expensive ... benchmark needed.
(too busy now ;-)
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
²) for instance IIRC it's possible to configure global setting for your perl interpreter.
In reply to Re^6: Introspecting the current Perl file via DATA, even w/o DATA? (perl5db.pl)
by LanX
in thread Introspecting the current Perl file via DATA, even w/o DATA?
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |