Problems? Is your data what you think it is? | |
PerlMonks |
Re: Re: Re: Re: Dereference an array referenceby suaveant (Parson) |
on Apr 19, 2001 at 21:22 UTC ( [id://73885]=note: print w/replies, xml ) | Need Help?? |
Ahhh! To dereference an array ref, you can do
the following @{$ref} or to get individual
numbered elements do $ref->[0] $ref->[3]
whatever the index is. So if your name is the first element
in the arrayref $name, you would get it by doing $name->[0]
is that more what you were looking for?
In Section
Seekers of Perl Wisdom
|
|