Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: Remove redundency from an arrayby Roy Johnson (Monsignor) |
on Sep 24, 2007 at 21:48 UTC ( [id://640832]=note: print w/replies, xml ) | Need Help?? |
Better to use either a lexical hash in the do-block, or an anonymous hash: @array = keys %{ {map {$_,undef} @array} }; Caution: Contents may have been coded under pressure.
In Section
Seekers of Perl Wisdom
|
|