Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Tie Array and Iterators

by tmaly (Monk)
on Jul 23, 2010 at 12:25 UTC ( [id://851027]=perlquestion: print w/replies, xml ) Need Help??

tmaly has asked for the wisdom of the Perl Monks concerning the following question:

Monks

I am looking for advice on how to wrap an iterator object with the Tie Array interface. Specifically, I wanted some suggestions on how to handle the FETCHSIZE implementation when I do not know how many elements the iterator will return.

Best Regards
Ty

Replies are listed 'Best First'.
Re: Tie Array and Iterators
by Anonymous Monk on Jul 23, 2010 at 12:35 UTC
    Maybe you can get ideas from Tie::Array::Iterable

    how to handle the FETCHSIZE implementation when I do not know how many elements the iterator will return

    I'd return the current known size

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-19 21:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found