Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: DB_File recno treats array like a hash

by Anonymous Monk
on Oct 12, 2012 at 08:13 UTC ( [id://998629]=note: print w/replies, xml ) Need Help??


in reply to Re^2: 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.

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

  • Comment on Re^3: DB_File recno treats array like a hash

Replies are listed 'Best First'.
Re^4: DB_File recno treats array like a hash
by Anonymous Monk on Oct 12, 2012 at 09:29 UTC
    Why it works on Linux, but doesn't on *BSD then?
        Nop, it works differently on Linux and *BSD. That's the point of the question.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-19 14:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found