Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^4: merging anonymous arrays

by ColonelPanic (Friar)
on Nov 16, 2012 at 14:24 UTC ( #1004204=note: print w/ replies, xml ) Need Help??


in reply to Re^3: merging anonymous arrays
in thread merging anonymous arrays

I like the added layer of anonymity that an anonymous subroutine gives! Your mind can be at ease knowing that no one will ever be able to identify any part of your code by name.

And then there is this, which should not have happened, but did:

use Modern::Perl; sub AUTOLOAD { our $AUTOLOAD; state %stuff; return @_ unless $AUTOLOAD=~/scalar/; return $stuff{$AUTOLOAD}++ ? eval $AUTOLOAD.'recursed(@_[1..$#_])' + : $_[0]; } my @key = map { autosub_scalariffic_list('A','B','C'), $_ } autosub_list(1,2,3); say qq{@key};


When's the last time you used duct tape on a duct? --Larry Wall


Comment on Re^4: merging anonymous arrays
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2014-09-21 10:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (168 votes), past polls