Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^6: Pre-compiled Perl?

by shmem (Chancellor)
on Apr 06, 2017 at 08:10 UTC ( [id://1187226]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Pre-compiled Perl?
in thread Pre-compiled Perl?

What do you mean?

I guess it is the fact that files loaded via use are compiled and executed whilst parsing the loading file.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Replies are listed 'Best First'.
Re^7: Pre-compiled Perl?
by LanX (Saint) on Apr 06, 2017 at 08:59 UTC
    Afaik does a require in Ruby also execute the code, and while not being an expert in Python it was easy to find the function __import__() which is executed at import. °

    I'd rather say execution at import is the rule and not the exception for dynamic languages.

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

    footnotes

    °) just checked it, no difference in Python, just see Why is Python running my module when I import it

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-25 23:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found