One thing to note about reading the DATA filehandle. Once you have read it, its really tricky to read it again, unless you unload and reload the module. I have run into this is the past. You can just seek to the start of the filehandle or you end up at the top of the actual file (if i remember correctly). The best way to get around this of course is to make sure you read once and cache.
In reply to Re: Problem Reading __DATA__ in a Module
by stvn
in thread Problem Reading __DATA__ in a Module
by Wally Hartshorn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |