"be consistent" | |
PerlMonks |
Re: append values to a same key in hashby jethro (Monsignor) |
on Jul 06, 2009 at 09:26 UTC ( [id://777499]=note: print w/replies, xml ) | Need Help?? |
$h{6077.1}->{xmltype}= '000';
You don't really append to a hash (since there is no ordered row or queue where you can append behind) but just insert values. To answer your probable next question too, if you want to test if a value already exists in the hash, you can use the function exists()
UPDATE: changed two ] to }, stupid typing error found thanks to AnomalousMonk
In Section
Seekers of Perl Wisdom
|
|