Hi,

I use to put this hash in a file and  get the content using

my $hashref = do $file;

And I want to be able to get the dupplicate keys in order to delete them
manually, without needing to search for each manually and compare it with
every other key from the hash, because if there are only a few keys there is
no problem, but if there are very many... it is.

Thank you.


----- Original Message ----- 
From: "Xavier Noria" <[EMAIL PROTECTED]>
To: "Perl Beginners" <beginners@perl.org>
Sent: Friday, July 15, 2005 3:33 PM
Subject: Re: creating a hash


> On Jul 15, 2005, at 13:38, Octavian Rasnita wrote:
>
> > I know that if there are more keys with the same name, the last is
> > used, but
> > I would like to clean the hash.
>
> Given
>
>      $h = { foo => 0, bar => 1, foo => 2 };
>
> what do you mean by "cleaning" $h ?
>
> -- fxn
>
>
>
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to