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

Re: working with a database

by Anonymous Monk
on Feb 10, 2012 at 00:13 UTC ( [id://952893]=note: print w/replies, xml ) Need Help??


in reply to working with a database

This is your problem     if (exists $phonebook{$name}){

You should ask the database if $name exists, not %phonebook

I would look into an ORM Class::DBI vs. DBIx::Class, Perl ORM comparison (Class::DBI vs. DBIx::Class vs. Rose::DB::Object)

Log In?
Username:
Password:

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

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

    No recent polls found