good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Printing referenceby TomDLux (Vicar) |
on Sep 27, 2010 at 16:27 UTC ( [id://862240]=note: print w/replies, xml ) | Need Help?? |
You showed no effort on your part. What have you tried and found not to work?
Perl Best Practices recommends using brackets when conjoining sigils ... @{ $ref } ... which I agree with when the expression is at all complicated. When it is as simple as in this case, however, I think it's straightforward enough -> The data stored in $ref is really an array, so please iterate over the elements. As Occam said: Entia non sunt multiplicanda praeter necessitatem.
In Section
Seekers of Perl Wisdom
|
|