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