Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Re: constant and eval (are they enemies?)

by Anonymous Monk
on May 24, 2002 at 00:20 UTC ( #168938=note: print w/replies, xml ) Need Help??


in reply to Re: Re: constant and eval (are they enemies?)
in thread constant and eval (are they enemies?)

Why can't you do
require constant; constant::->import($name => $value);
?

-Anomo

Replies are listed 'Best First'.
•Re: Re: Re: Re: constant and eval (are they enemies?)
by merlyn (Sage) on May 24, 2002 at 00:28 UTC
    That's happening at runtime, not compile time. While you could put a BEGIN block around it, the code I posted elsewhere in this thread copies the method of the module, without even having to invoke the overhead of the module.

    -- Randal L. Schwartz, Perl hacker

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2022-05-21 05:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (76 votes). Check out past polls.

    Notices?