Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Lost over DBI in perl

by kejohm (Hermit)
on Aug 22, 2011 at 02:04 UTC ( [id://921570]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    
  2. or download this
    sub open_dbi {
        # Declare and initialize variables
    ...
        my $dbh = DBI->connect("dbi:ODBC:database=$db;host=$host", $db_use
    +r, $db_password, {RaiseError => 0, PrintError => 0} ) or err_trap("Ca
    +nnot connect to the database");
        return $dbh;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-24 19:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found