Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: What is this doing, and why is this a good method of doing it?

by nothingmuch (Priest)
on Jul 28, 2005 at 10:01 UTC ( #478897=note: print w/replies, xml ) Need Help??


in reply to What is this doing, and why is this a good method of doing it?

Does this capture the essence?
my @x = somefunction(); my @xs = map { { name => $_, sub => sub { ... }, } } @x; for (@xs) { no strict 'refs'; *{ $_->{name} } = $_->{sub}; }
-nuffin
zz zZ Z Z #!perl
  • Comment on Re: What is this doing, and why is this a good method of doing it?
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2022-08-17 00:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?