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

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://918496]
[Corion]: Oh - "Cyber Monday" week is coming up... That's why weird stuff is already discounted now...
[Corion]: marto: Oh, cool, I hope you get to enjoy the trip and Copenhagen! I found it nice (but the mermaid is underwhelming)
[marto]: the kids and their mother are coming too, actually only 9 people at the wedding in total. Still, will be fun

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2017-11-19 11:43 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (280 votes). Check out past polls.