Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: can understand one line of code

by tobyink (Abbot)
on Dec 19, 2012 at 15:22 UTC ( #1009575=note: print w/ replies, xml ) Need Help??


in reply to can understand one line of code

It's quite obscurely written, but, it's roughly equivalent to:

my @results; my @tmp_array = @{ $RegObj->{SUBKEYS} }; $RegObj->{MEMBERS} = \@tmp_array; for my $member (@{ $RegObj->{MEMBERS} }) { next unless $member =~ /\$/; $member =~ s/\$/$RegObj->{DELIM}/; push @results, $member; } @results;
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'


Comment on Re: can understand one line of code
Download Code

Log In?
Username:
Password:

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

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

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





    Results (110 votes), past polls