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 :)