laziness, impatience, and hubris | |
PerlMonks |
Re: working with a databaseby Anonymous Monk |
on Feb 10, 2012 at 00:13 UTC ( [id://952893]=note: print w/replies, xml ) | Need Help?? |
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)
In Section
Seekers of Perl Wisdom
|
|