Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Any help would be greatly appreciated..#!/usr/bin/perl -w use DBI; use Net::Telnet (); $t = new Net::Telnet (Timeout => 10,); $user = "admin"; $passwd = ""; $t->open("Sparta"); $t->login($user, $passwd); @lines = $t->cmd("switchshow"); # Connect to the database. my $dbh = DBI->connect("DBI:mysql:database=test;host=localhost", "joe", "joe's password", {'RaiseError' => 1}); $dbh->do("INSERT INTO foo VALUES (1, " . $dbh->quote("Tim") . ")");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI question
by runrig (Abbot) on Jun 01, 2005 at 19:40 UTC | |
|
Re: DBI question
by injunjoel (Priest) on Jun 01, 2005 at 20:04 UTC | |
|
Re: DBI question
by derby (Abbot) on Jun 01, 2005 at 19:42 UTC | |
by runrig (Abbot) on Jun 01, 2005 at 19:46 UTC | |
|
Re: DBI question
by Anonymous Monk on Jun 01, 2005 at 19:55 UTC | |
by xtype (Deacon) on Jun 01, 2005 at 23:37 UTC | |
|
Re: DBI question
by Anonymous Monk on Jun 01, 2005 at 19:41 UTC | |
by cool_jr256 (Acolyte) on Jun 01, 2005 at 19:46 UTC |