I know about eval "string" and do "filename.pl"
Now I have a stream that produces data blocks, something like a function that returns one data block per call. I don't want to store all the data in memory to do a string eval. So I thought of something like
(I know this does something else and is deprecated)do sub {...} # the function returns one data chunk per call
So, how about this?
Is that possible?do FILEHANDLE # FILEHANDLE is opened with a special PerlIO # layer that calls sub {...} on read.
Thanks,
Torsten
In reply to do FILEHANDLE ? by tfoertsch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |