|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re^3: Can't use string ("1") as a SCALAR ref while "strict refs" in useby ssandv (Hermit) |
| on Mar 09, 2010 at 19:13 UTC ( [id://827609]=note: print w/replies, xml ) | Need Help?? |
|
You most certainly are doing something not only awkward, but pointless. Matching in a list context returns the contents of the match variables as a list in numerical order. You should assign that to an array or list of scalars (ikegami's solution right here is a list of scalars). You gain absolutely nothing by delving into the bottomless pit of symbolic references in this case.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||