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

RE: $foo{bar}-() vs. $foo{bar}()

by Carl-Joseph (Scribe)
on Oct 07, 2000 at 10:58 UTC ( [id://35729]=note: print w/replies, xml ) Need Help??


in reply to $foo{bar}-() vs. $foo{bar}()

Evidently, this is a feature of Perl 5.6.

Check out Camel3, page 283. The last two sentences of the section: Hashes of Functions.

". . . we invoke the appropriate command by derefencing the hash value as a function and pass that function and empty argument list. We could have dereferenced it as &{ $HoF{lc $cmd} }(), or, as of the 5.6 release of Perl, simply $HoF(lc $cmd}().

Carl-Joseph

Replies are listed 'Best First'.
RE: RE: $foo{bar}-() vs. $foo{bar}()
by rlk (Pilgrim) on Oct 07, 2000 at 11:03 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-16 09:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found