|
|
| Problems? Is your data what you think it is? | |
| PerlMonks |
Re^2: multiple __DATA__ && __END__by Coruscate (Sexton) |
| on Nov 20, 2003 at 19:09 UTC ( [id://308765]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
tell and seek may be used to jump around in the single __DATA__ section. Quite true. I'm just going to throw in the mention that tell() really is needed if you are planning to seek() your way through *DATA. Simply because *DATA is an extension of your file, so seek DATA, 0, 0; brings you to the start of the file, rather than the start of the __DATA__ section. (P.S.: I gather that you already knew this, as per your mention of tell(). Just wanted to throw in the extra info for anyone who stumbles across this and wonders how to do such a thing).
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||