in reply to Re: Re: Re: Re: A hash of an array containing hashes & arrays
in thread A hash of an array containing hashes & arrays

Ohhhh... well if you're just trying to see what someone else's data looks like, have you considered using Data::Dumper instead? It makes something like that very easy.
use Data::Dumper; my %Volume_Info = ( alpha => [ 0, 512, 1048576, 1, { one => 'first_hash' }, [ 'two', 'first_array' ], { three => 'second_hash' }, -1, 0, 'zfod', 0 ], beta => [ 1, 2, { four => 'third_hash' }, 2, 1 ] ); print Dumper(\%Volume_Info);
...which produces...
$VAR1 = { 'beta' => [ 1, 2, { 'four' => 'third_hash' }, 2, 1 ], 'alpha' => [ 0, 512, 1048576, 1, { 'one' => 'first_hash' }, [ 'two', 'first_array' ], { 'three' => 'second_hash' }, -1, 0, 'zfod', 0 ] };
Not sure if this fits your purposes, but I felt it was worth mentioning (especially after misleading you with my first response).

-Bird

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: A hash of an array containing hashes & arrays
by ebodine (Novice) on Aug 22, 2002 at 21:52 UTC
    Never tried Data::Dumper before. Looks like it is exactly what I am looking for. Thanks

    --ERick