SyntaxFix
Write A Post
Hire A Developer
Questions
That last one was pretty good. I'd just tweak it a bit:
my @arr; my @uniqarr; foreach my $var ( @arr ){ if ( ! grep( /$var/, @uniqarr ) ){ push( @uniqarr, $var ); } }
I think this is probably the most readable way to do it.