![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
Re: to select unique charactersby johngg (Canon) |
on Feb 13, 2008 at 10:42 UTC ( #667752=note: print w/replies, xml ) | Need Help?? |
The common idiom seems to be
but using a hash slice seems to be a bit faster. I should warn that I have a chequered history with benchmarks so take this with a pinch of salt.
The output.
If you need to preserve the order of the array then you should use the grep method. I hope this is of interest. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|