Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: updating a variable call in a hash table

by shmem (Canon)
on Feb 09, 2009 at 13:32 UTC ( #742421=note: print w/ replies, xml ) Need Help??


in reply to Re^3: updating a variable call in a hash table
in thread updating a variable call in a hash table

No need for eval.

$sentence = sub { "The next color is ". shift }; $color = q(blue); print $sentence->($color);


Comment on Re^4: updating a variable call in a hash table
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2014-12-17 23:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (40 votes), past polls