On Wed, 21 Nov 2007 09:56:02 +0000 (GMT) Anthony Gardner <[EMAIL PROTECTED]> wrote:
> $result = join( ',', map{ $my_hash->{A_KEY}->{$_} }
> grep{ ! /some_string/ }
> sort keys %{$my_hash->{A_KEY}}
> );
Tiny nitpick - it's more efficient to grep out only the elements you
want, then sort those. No point sorting elements you're going to throw
away.
--
Paul "LeoNerd" Evans
[EMAIL PROTECTED]
ICQ# 4135350 | Registered Linux# 179460
http://www.leonerd.org.uk/
signature.asc
Description: PGP signature
_______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
