Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: How can I create an iterator that works inside foreach() (updated)

by AnomalousMonk (Archbishop)
on Nov 05, 2022 at 03:55 UTC ( [id://11147982]=note: print w/replies, xml ) Need Help??


in reply to Re^2: How can I create an iterator that works inside foreach() (updated)
in thread How can I create an iterator that works inside foreach()

Also, looking at the post on the other site, it occurs to me that you might mention the semipredicate problem with the posted code (see the end of my updated post).

... inner sub upto must be predeclared to take an anonymous sub argument; hence the (%).

I don't understand this. Are upto (no leading underscore) and (%) typos? And shouldn't _upto be something like Iterator (for clarity)?


Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-19 12:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found