in reply to Scalar ref acting as simulatenous hash and array?
my $obj_array = do_stuff_from_my_module(); my $obj_hash = convert_masems_array_to_a_hash($obj_array); #then the valid code options would be my $name = $obj_array->[2]; # Assume name is the 3rd element # # OR!!! # my $name = $obj_hash->{ name };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Scalar ref acting as simulatenous hash and array?
by Hofmator (Curate) on Oct 19, 2001 at 19:14 UTC |