There's more than one way to do things | |
PerlMonks |
Re^2: [HOP] Working with Iterators, why do I suddenly get a coderef?by three18ti (Monk) |
on Nov 03, 2013 at 01:08 UTC ( [id://1061003]=note: print w/replies, xml ) | Need Help?? |
Hello, Thanks for your reply. Interestingly, I'm not getting a different result when adding parenthisis for the append() call, but when I use parenthesis for the call to list_iterator, it DOES fix my problem.
prints:
But when I use parenthesis around list_iterator:
I get what I would expect
Thanks for the assist! I think the problem is trying to make too many calls to subs without parenthesis.
In Section
Seekers of Perl Wisdom
|
|