Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Weirdness when reading from DBM file

by mojodaddy (Pilgrim)
on Sep 11, 2007 at 10:25 UTC ( [id://638274]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    +---------------+-------------+------+-----+------------+-------+
    | Field         | Type        | Null | Key | Default    | Extra |
    ...
    | salary        | mediumint   |      |     |            |       |
    | date_hired    | date        |      |     |            |       |
    +---------------+-------------+------+-----+------------+-------+
    
  2. or download this
    #!/usr/bin/perl -w
    
    ...
        }
    }
    untie %IDS;
    
  3. or download this
    12345678:
    firstame => Fritz
    ...
    dept => research
    salary => peanuts
    date_hired => 2006-01-20
    
  4. or download this
    #!/usr/bin/perl -w
    
    ...
        }
    }
    
  5. or download this
    12345678:
    Can't use string ("ARRAY(0x84d90b8)") as an ARRAY ref while "strict re
    +fs" in
    ...
    Uncaught exception from user code:
            Can't use string ("ARRAY(0x84d90b8)") as an ARRAY ref while "s
    +trict refs" in use at read_db.pl line 18.
     at read_db.pl line 18
    
  6. or download this
    tie %IDS, "DB_File", $file or die "Can't open $file: $!";
  7. or download this
    12345678:
    firstame => Fritz
    ...
    dept => research
    salary => peanuts
    date_hired => 2006-01-20
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-03-28 16:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found