Re: creating a hash
- From: orasnita@xxxxxx (Octavian Rasnita)
- Date: Fri, 15 Jul 2005 15:50:22 +0300
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" <fxn@xxxxxxxxxxx>
To: "Perl Beginners" <beginners@xxxxxxxx>
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: beginners-unsubscribe@xxxxxxxx
> For additional commands, e-mail: beginners-help@xxxxxxxx
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>
.
- Follow-Ups:
- Re: creating a hash
- From: Xavier Noria
- Re: creating a hash
- References:
- creating a hash
- From: Octavian Rasnita
- Re: creating a hash
- From: Xavier Noria
- creating a hash
- Prev by Date: Re: creating a hash
- Next by Date: Re: creating a hash
- Previous by thread: Re: creating a hash
- Next by thread: Re: creating a hash
- Index(es):
Relevant Pages
|