in reply to Overhead of __DATA__?
As far as I can tell (and I'm not an expert on the Perl sources), during tokenization when __DATA__ is encountered Perl creates a filehandle for the current package called DATA and leaves the file pointer right there.
Other nonsense happens if you're on a platform that cares about binmode() and whether the script was found on stdin...<handwave/>
(Curiously, DATA is assumed to be untainted. I wonder if this could be used to a JAPH's advantage...)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Overhead of __DATA__?
by E-Bitch (Pilgrim) on Sep 05, 2001 at 08:16 UTC | |
Re: Re: Overhead of __DATA__?
by extremely (Priest) on Sep 05, 2001 at 20:52 UTC |
In Section
Seekers of Perl Wisdom