in reply to Re: Re: References for subroutines to Hashes in Hashes :)
in thread References for subroutines to Hashes in Hashes :)
Not tested, but should work... that should go through the keys, matching any that start with AM or PM with an _ and the a number, and push them into an anonymous array if they have a value... this is assuming AM_0 AM_1 etc just hold a 1 or 0 for a yes or no... }for $key (keys %$c) { next unless $key =~ /^[AP]M_\d+$/; push @{$a_record{$c->{ANA_ID}}{Dates}{$c->{ACTION_DATE}}}, $c->{$key} if $c->{$key}; }
- Ant
- Some of my best work - Fish Dinner
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: References for subroutines to Hashes in Hashes :)
by merlijn_u (Novice) on Aug 17, 2001 at 20:28 UTC | |
|
Re: Re: Re: Re: References for subroutines to Hashes in Hashes :)
by merlijn_u (Novice) on Aug 17, 2001 at 18:43 UTC | |
by suaveant (Parson) on Aug 17, 2001 at 18:57 UTC | |
|
Re: Re: Re: Re: References for subroutines to Hashes in Hashes :)
by merlijn_u (Novice) on Aug 17, 2001 at 18:45 UTC | |
|
Re: Re: Re: Re: References for subroutines to Hashes in Hashes :)
by merlijn_u (Novice) on Aug 17, 2001 at 19:15 UTC | |
by suaveant (Parson) on Aug 17, 2001 at 19:58 UTC |