laziness, impatience, and hubris | |
PerlMonks |
Re: printing an array referenceby cmeyer (Pilgrim) |
on Jul 18, 2005 at 20:26 UTC ( [id://475878]=note: print w/replies, xml ) | Need Help?? |
An arrayref is a scalar value, so you should store it in a scalar variable. There are several ways of dereferencing (turning it into an array) an arrayref. One of the easiest is to prepend the scalar variable that holds an arrayref with the array sigil ("@").
Take a read through some documentation, such as 'perldoc perlreftut', and the Q&A section here on Perlmonks (Here's a link to the references section). -Colin. WHITEPAGES.COM | INC
In Section
Seekers of Perl Wisdom
|
|