in reply to Re: DB_File recno treats array like a hash
in thread DB_File recno treats array like a hash

length() method right after push reports correct length. Issue occurs only when tie'ing existing database after untieing.
  • Comment on Re^2: DB_File recno treats array like a hash

Replies are listed 'Best First'.
Re^3: DB_File recno treats array like a hash
by Anonymous Monk on Oct 12, 2012 at 08:13 UTC

    length() method right after push reports correct length. Issue occurs only when tie'ing existing database after untieing.

    There is no issue. You loop twice, you push two items to the same database twice, and you end up with four items after the second time.

    2 + 2 = 4

      Why it works on Linux, but doesn't on *BSD then?