There's more than one way to do things | |
PerlMonks |
Re: Reference found where even-sized list expectedby kcott (Archbishop) |
on Sep 28, 2017 at 05:04 UTC ( [id://1200242]=note: print w/replies, xml ) | Need Help?? |
G'day sciguy, I see you've been shown three different ways to deal with this: here's a fourth. Change
to
and leave the remainder of your code as is. That's called "Postfix Dereference Syntax". It became available in 5.20 with a feature declaration; as of 5.24, that declaration is not required. It's not experimental, so quite OK for production code. Follow that link for more complete details. — Ken
In Section
Seekers of Perl Wisdom
|
|