Perl-Sensitive Sunglasses | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
> Why do you think so?
Because the filepointer is in sync with the parsing phases of Perl. There is an explicit warning not to read DATA at BEGIN or use phases because the end of file isn't reached yet. And testing showed that in this cases you can readline the currently processed source line resp. the next one. Not finding the handle in the main stash doesn't mean it doesn't exist somewhere else (probably hidden somewhere in B )
update
Cheers Rolf
In reply to Re^2: Introspecting the current Perl file via DATA, even w/o DATA?
by LanX
|
|