No such thing as a small change | |
PerlMonks |
Re: map return to array referenceby davorg (Chancellor) |
on Jan 24, 2007 at 17:06 UTC ( [id://596291]=note: print w/replies, xml ) | Need Help?? |
@{$self->_getGood()} If $self->_getGood returns an array (or, indeed, a list) then there's no need to dereference it again. I assume that '6' is the first item in the returned list.
But as you hint that you already know, you shouldn't be assigning that to a scalar, so you probably want:
-- "The first rule of Perl club is you do not talk about Perl club." -- Chip Salzenberg
In Section
Seekers of Perl Wisdom
|
|