Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

tart's scratchpad

by tart (Beadle)
on Feb 19, 2010 at 02:13 UTC ( [id://824084]=scratchpad: print w/replies, xml ) Need Help??

my %hash = ( run1 => {SUB => \&tmp, DES => 'Print Hello'}, run2 => {SUB => \&tmp2, DES => 'Print Bye'}, ); foreach(keys %hash) { print "Running: $hash{$_}->{SUB}\n"; &{$hash{$_}{SUB}}; } sub tmp { print "Hello\n"; } sub tmp2 { print "Bye\n"; }
which gives me,
Running: CODE(0x9c84c24) Bye Running: CODE(0x9c84bd0) Hello
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-26 00:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found