in reply to Does perl read the entire pl file into memory?
Right this happens at compile time and DATA° is exactly that filehandle which points there.
That's why you can continue reading from <DATA> or use seek to set DATA back and read the source again. ( better not at compile time though ;)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
°) there is a minor difference between DATA and END which doesn't matter in this case.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Does perl read the entire pl file into memory?
by harangzsolt33 (Deacon) on May 21, 2019 at 20:05 UTC | |
by Your Mother (Archbishop) on May 22, 2019 at 01:04 UTC |