It's possible that other modules (like source filters) may mess with this strategy, but using it in your own code should work.
* update: it's even possible to seek to the beginning of the file and read the source before the __DATA__ line, and as far as I know that's a documented feature (though there probably isn't really a *good* reason to use it).
update 2: for some more caveats see the beginning of the SelfLoader documentation.
In reply to Re: __DATA__, seek, and tell
by Joost
in thread __DATA__, seek, and tell
by gamache
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |