Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^5: Help Changing use into require/import

by choroba (Cardinal)
on Mar 08, 2018 at 16:45 UTC ( [id://1210518]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Help Changing use into require/import
in thread Help Changing use into require/import

> "use" does a require and import

in a BEGIN block. That's important, because it can change how the rest of the code is parsed. For OO modules, that's usually not an issue, but if the module introduces keywords with fancy syntax (like capture { ... }), you need to predeclare these with the appropriate prototypes, otherwise the parser can't parse them; or you need to call them without the special syntax (capture(sub { ... });). Read perlsub to learn about compile time and prototypes.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-16 13:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found