Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: MyModule::BEGIN calls

by habit_forming (Monk)
on Dec 08, 2003 at 20:59 UTC ( [id://313233]=note: print w/replies, xml ) Need Help??


in reply to MyModule::BEGIN calls

Ok here is an update.

MyModule has 50-60 use constant's. If I change those to *CONST1 = sub {42};. The massive number of MyModule::BEGINs drops dramatically and thus saves a heck of a lot of time.
But still sometimes changing a use constant to a *C = sub { ... } does not work. Anyone have any ideas on that?

--habit

P.S. I think it may have to do with the way things are exported...

Replies are listed 'Best First'.
Re: Re: MyModule::BEGIN calls
by duff (Parson) on Dec 08, 2003 at 22:15 UTC

    Why 50-60? Why not just one big, ugly, use constant declaration near the beginning?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-24 01:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found