in reply to append values to a same key in hash
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()
if (exists($h{6077.1}->{xmltype}) { ... }
UPDATE: changed two ] to }, stupid typing error found thanks to AnomalousMonk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: append values to a same key in hash
by ELISHEVA (Prior) on Jul 06, 2009 at 10:08 UTC | |
|
Re^2: append values to a same key in hash
by shan_emails (Beadle) on Jul 06, 2009 at 10:03 UTC | |
|
Re^2: append values to a same key in hash
by perldesire (Scribe) on Jul 06, 2009 at 09:40 UTC |