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

Nop, it works differently on Linux and *BSD. That's the point of the question.

So you ran my program? What was the output?

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

Replies are listed 'Best First'.
Re^8: DB_File recno treats array like a hash
by vleschuk (Initiate) on Oct 12, 2012 at 10:27 UTC

    netbsd:

    length 1 scalar 1

    length 3 scalar 3

    length 5 scalar 5

    length 7 scalar 7

    length 8 scalar 8

    length 8 scalar 8

    length 8 scalar 8

    length 8 scalar 8

    length 8 scalar 8

    length 8 scalar 8



    linux:

    length 1 scalar 1

    length 2 scalar 2

    length 3 scalar 3

    length 4 scalar 4

    length 4 scalar 4

    length 4 scalar 4

    length 4 scalar 4

    length 4 scalar 4

    length 4 scalar 4

    length 4 scalar 4

      For future reference, use code tags for code/data/input/output

      What do you get for

      use DB_File; print qq{ ### $] #~ \$DB_File::db_ver $DB_File::db_ver #~ \$DB_File::db_version $DB_File::db_version #~ \$DB_File::VERSION $DB_File::VERSION ######## }; __END__ ### 5.014001 #~ $DB_File::db_ver 5.001025 #~ $DB_File::db_version 5.1 #~ $DB_File::VERSION 1.824 ########

        Hello, thanks, seems like the problem is that DB backend versions differ (BSD seems much older than Linux):

        linux: ### 5.014002 #~ $DB_File::db_ver 5.001029 #~ $DB_File::db_version 5.1 #~ $DB_File::VERSION 1.821 ######## netbsd: ### 5.014002 #~ $DB_File::db_ver 1 #~ $DB_File::db_version 1 #~ $DB_File::VERSION 1.821 ########