Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Database problem

by trammell (Priest)
on Aug 06, 2005 at 15:30 UTC ( #481497=note: print w/replies, xml ) Need Help??

in reply to Database problem

Sorry, I don't have the inclination to delve deeply into the code you post. But in the first handful of lines I notice:
  • you don't use strict;
  • you don't use warnings;
  • you don't check the return status of your open(), e.g.
    open(CONFIG, "<homenet.actiontrigger.conf") or die "Can't open config file: $!";
I'd put those three things at the top of your "to do" list.

Replies are listed 'Best First'.
Re^2: Database problem
by jeroen_h (Initiate) on Aug 06, 2005 at 15:57 UTC
    OK, I'll try this first! I get a lot of errors on my variables now, so I'll look at these to correct them...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://481497]
[choroba]: You can also try DBD::MariaDB instead of MySQL
[choroba]: it's not on CPAN yet, unfortunately, so you have to install manually from github
[Spenser]: Thanks. I tried DBD::MariaDB just now. It can't find that module.
[Spenser]: oh, I'll check github

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2018-03-17 12:58 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (224 votes). Check out past polls.