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

Re: Overriding the built-in require function

by moritz (Cardinal)
on Feb 04, 2008 at 19:52 UTC ( [id://666073]=note: print w/replies, xml ) Need Help??


in reply to Overriding the built-in require function

Wrap your substitution in a BEGIN block, then it works:
BEGIN { *CORE::GLOBAL::require = sub { CORE::require($_[0]); print $_[0], "\n"; }; }

Replies are listed 'Best First'.
Re^2: Overriding the built-in require function
by /dev/urandom (Beadle) on Feb 04, 2008 at 19:59 UTC
    excellent. that indeed seemed to work. thank you very much.

Log In?
Username:
Password:

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

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

    No recent polls found