Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: code explanation

by Utilitarian (Vicar)
on Aug 04, 2011 at 10:49 UTC ( #918496=note: print w/ replies, xml ) Need Help??


in reply to code explanation

Why not see what it does and work it out...
perl -MData::Dumper -e ' my @AoA=( ["one", "two", "three"], ["four", "five", "six"], ["four","five","six"], ["seven", "eight", "nine"], ["eight", "seven", "nine"]); my @r = grep{++$uniq{ join $; , sort @$_ } == 1 } @AoA; print "\@r is now:\n", Dumper(\@r), "\%uniq is now:\n",Dumper(\%uniq)'
Then check out $; in perlvar.

print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (13)
As of 2016-07-27 15:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (243 votes). Check out past polls.