Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: callback or call now?

by erikharrison (Deacon)
on Oct 17, 2002 at 16:13 UTC ( #206061=note: print w/ replies, xml ) Need Help??


in reply to callback or call now?

I think that you've got it turned around. The common case, in my mind, would be import by ref instead of import by callback. The second slash means "Something a little funny is going on" which would be the callback case, to my mind.

Cheers,
Erik

Light a man a fire, he's warm for a day. Catch a man on fire, and he's warm for the rest of his life. - Terry Pratchet


Comment on Re: callback or call now?
Re: Re: callback or call now?
by John M. Dlugosz (Monsignor) on Oct 17, 2002 at 18:20 UTC
    If backslash simply means "not the default", then its meaning varies with your expectations.

    I'm thinking that it more-specifically means "take it literally, not as instructions to find the answer.". Then you get this progression:

    foo => &bar means call bar now when the structure is being built. foo => \&bar means call bar later, when foo is imported (and bar can see the context of what the impoter is asking for). Finally, foo => \\&bar will call bar even later, when foo is actually called after being imported.

    —John

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2015-07-03 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (56 votes), past polls