in reply to Hash Problem!
Try:
Update: A somewhat more advanced approach: (Assuming %h is the outside hash)# Assuming your outside hash is named %h, print $h{main_data}[1]{AMOUNT} . "\n";
for (map {@$_} values %h){ print "Account " . $_->{ACCOUNT} . " AMOUNT: " if exists $_->{ACCOUN +T}; next unless exists $_->{AMOUNT}; print $_->{AMOUNT} . "\n"; } # --- Output --- # Account 6510334 AMOUNT: 200.00 # Account 6510334 AMOUNT: 0.00
Have you been high today? I see the nuns are gay! My brother yelled to me...I love you inside Ed - Benny Lava, by Buffalax
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hash Problem!
by cLive ;-) (Prior) on Sep 30, 2008 at 02:10 UTC | |
by NetWallah (Canon) on Sep 30, 2008 at 04:44 UTC |