Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: [HOP] Working with Iterators, why do I suddenly get a coderef?

by LanX (Saint)
on Nov 03, 2013 at 00:42 UTC ( [id://1061000]=note: print w/replies, xml ) Need Help??


in reply to [Solved][HOP] Working with Iterators, why do I suddenly get a coderef?

I'd suggest to use parens when calling list_iterator()

Sorry can't test while mobile...

Cheers Rolf

( addicted to the Perl Programming Language)

  • Comment on Re: [HOP] Working with Iterators, why do I suddenly get a coderef?

Replies are listed 'Best First'.
Re^2: [HOP] Working with Iterators, why do I suddenly get a coderef?
by three18ti (Monk) on Nov 03, 2013 at 01:11 UTC

    Hey Rolf,

    Thanks, you nailed it! I was reading the parenthesis around qw() and thinking that was the parenthesis for the sub call, but it's not, it's the parenthesis around the list.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1061000]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-24 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found