Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Does perl read the entire pl file into memory?

by haukex (Chancellor)
on May 21, 2019 at 15:27 UTC ( #11100321=note: print w/replies, xml ) Need Help??


in reply to Does perl read the entire pl file into memory?

AFAIK Perl treats __END__ like an EOF, i.e. it will stop reading the file at that point, so the amount of data after an __END__ shouldn't make a difference. Everything before that does have to be read before it is parsed and executed, of course. If you have large amounts of data, it's probably better to put that in an external file, though. It is fairly common to put large POD documents after an __END__, though.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11100321]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2020-06-01 17:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (5 votes). Check out past polls.

    Notices?