On Tue, 19 Oct 2004 16:10:01 -0500
[EMAIL PROTECTED] wrote:
>
> Vladi Belperchinov-Shabanski <[EMAIL PROTECTED]>:
>
> :skip values:
> :
> :%hash = qw( fred filntstone barney rubble tom delong );
> :print( map { $a=!$a ? $_ : () } reverse( %hash ) );
> :
> :perhaps not too bad map() example :)
> :
> :P! Vladi.
>
>
> Or, you can do it the regular old un-fun way, and just use a
> second, temporary hash:
>
> my %hash = qw(fred flintstone barney rubble tom delong);
> my %hsah = reverse %hash;
> print keys %hsah;
> yes. which is shown in at least two posts before mine... personally I like "values %hash" most :)) -- Vladi Belperchinov-Shabanski <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> http://cade.datamax.bg/ Cross the ocean deep, wake now from your sleep Kiss the past goodbye, don't follow empty skies...
pgpTtxSm3Z4yH.pgp
Description: PGP signature
