undef casti hashu

David Olszyński hisaak na mrkvoslav.ascs.muni.cz
Pátek Červen 7 10:14:55 MEST 2002


Roman Fordinal wrote:

> Ahojte!
> 
> mam taky problem. mam nadefinovane a plne hashove pole typu
> 
> $hash{prve}{popis}="blablabla";
> $hash{prve}{obsah}="o hocicom";
> $hash{prve}{pocet}=20;
> $hash{druhe}{popis}="blablabla";
> $hash{druhe}{obsah}="o hocicom";
> $hash{druhe}{pocet}=10;
> $hash{dalsie}{popis}="blablabla";
> ..
> 
> a potrebujem vykonat undef nad vsetkym co sa tyka napriklad
> $hash{druhe}{popis},$hash{druhe}{obsah},$hash{druhe}{pocet}

delete $hash{druhe}; nefunguje? 
(man perlfunc)

hisaak



Další informace o konferenci Perl