|
|
| The stupid question is the question not asked | |
| PerlMonks |
Re^3: -> Is Optional ?by Athanasius (Vicar) |
| on Dec 29, 2012 at 16:34 UTC ( #1010827=note: print w/ replies, xml ) | Need Help?? |
|
The line
creates an anonymous array with 4 elements, and assigns a reference to this anonymous array — i.e., a single, scalar value — to be the first (and only) element of the named array @a. I suspect that parentheses were intended rather than square brackets:
and then the rest of the original code behaves as intended. Hope that helps,
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||