Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^10: XML::Twig Support for Parameter Entities (right)

by shmem (Chancellor)
on Aug 13, 2015 at 08:59 UTC ( [id://1138396]=note: print w/replies, xml ) Need Help??


in reply to Re^9: XML::Twig Support for Parameter Entities (docs)
in thread XML::Twig Support for Parameter Entities

For me, 'do' does "search @INC" and does "update %INC", despite the docs.

No, not despite, exactly as the docs state: do searches @INC - I have gotten this bit wrong (you apparently too just now).

So, the only remaining difference between require and do is that require doesn't load a file present in %INC, while do loads unconditionally. But since require doesn't cache the value it returns at the first call, I have to cache it anyways.

Which means, that I'll be using do furthermore for all the cases I presented. Thanks!

update: IMO perl should have an internal table holding the return values from require evals.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
  • Comment on Re^10: XML::Twig Support for Parameter Entities (right)

Log In?
Username:
Password:

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

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

    No recent polls found