in reply to Overhead of __DATA__?
In fact if you "rewind" it by seek( DATA, 0, 0) than do print <DATA> you do print the whole script:
|
note to refute a remark on the CB
To my own surprise: you can pipe this script to Perl and you will get the same result as executing it from a file because of the IO buffering. Indeed, the perl seek() does not translate on a seek() system call. So, if buffering permits, you can perl-seek a non seekable stream!!!
-- stefp
|
---|