Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: perlbug: seekdir/readdir broken on win32 on 5.008009, 5.012002, 5.014001

by ikegami (Patriarch)
on Nov 27, 2011 at 09:17 UTC ( [id://940246]=note: print w/replies, xml ) Need Help??


in reply to perlbug: seekdir/readdir broken on win32 on 5.008009, 5.012002, 5.014001

You did not demonstrate a bug since you're clearly misusing seekdir according to the very documentation to which you linked:

seekdir DIRHANDLE,POS sets the current position for the readdir routine on DIRHANDLE. POS must be a value returned by telldir.

Replies are listed 'Best First'.
Re^2: perlbug: seekdir/readdir broken on win32 on 5.008009, 5.012002, 5.014001
by Anonymous Monk on Nov 27, 2011 at 09:48 UTC

    Thanks, I should have known better (I even thought, sure, I'm the first to discover this bug since 1987)

    It appears seekdir/telldir returns length + 1

    Happy holidays

      I see now where I was confused, I was thinking in terms of readline, IO::Dir/FIRSTKEY/NEXTKEY, and I confused seek for being line-oriented

      All this, and I'm not tired or under the influence, go figure :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-20 03:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found