6 messages in com.mysql.lists.perlRe: Problem with executing FirtPerlSc...
FromSent OnAttachments
j zhao19 Sep 2002 16:37 
Zhao, Charles19 Sep 2002 16:53 
Garry Williams19 Sep 2002 22:26 
Greg Meckes20 Sep 2002 03:02 
Greg Meckes20 Sep 2002 07:27 
Garry Williams21 Sep 2002 12:23 
Subject:Re: Problem with executing FirtPerlScript.pl
From:Greg Meckes (greg@yahoo.com)
Date:09/20/2002 03:02:17 AM
List:com.mysql.lists.perl

Actually, it's simply a space for one: DBI-><SPACE HERE>connect

Should be: DBI->connect

Second, try this syntax: my $dbh = DBI-> connect($driver:$database, "root", "tacobell") or die "Can't connect";

5: my $dbh = DBI-> connect($driver:database=$database, "root", "tacobell") or
die "Can't connect";

6: # Insert the values

7: $dbh->do("INSERT INTO Customers (First_Name, Last_Name) VALUES ('Renee',
'Robertson')");

8: $dbh->do("INSERT INTO Customers (First_Name, Last_Name) VALUES ('Larry',
'Isacson')");

9: $dbh->do("INSERT INTO Customers (First_Name, Last_Name) VALUES ('Mark',
'Harrison')");

10: # Disconnect from the database

11: $dbh->disconnect;

12: exit;