laziness, impatience, and hubris | |
PerlMonks |
Re^2: Eliminate Array of array duplicationby Utilitarian (Vicar) |
on May 19, 2011 at 08:32 UTC ( [id://905631]=note: print w/replies, xml ) | Need Help?? |
I would agree with ikegami's post above, the only thing I'd add it that you should probably sort the array before using it as a key, if [1, 2, 3] , [3, 2, 1] and [2, 1, 3] are considered identical.
print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
In Section
Seekers of Perl Wisdom
|
|