in reply to Re: Re: recomendations needed for type of data structure
in thread recomendations needed for type of data structure
# this handles ARRAYs and HASHes # you may want to use Data::Dumper for debugging however # the final code for processing the data structure will # also be less generic than this code. if (ref $value eq 'ARRAY') { print "$key => (@$value)\n"; } elsif (ref $value eq 'HASH') { print "$key => (%$value)\n"; } else print "$key => $value\n"; }
--
integral, resident of freenode's #perl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: recomendations needed for type of data structure
by Anonymous Monk on Feb 17, 2003 at 21:09 UTC | |
by integral (Hermit) on Feb 17, 2003 at 21:14 UTC | |
|
Re: Re: Re: Re: recomendations needed for type of data structure
by steves (Curate) on Feb 17, 2003 at 21:49 UTC |