At 09:27 04.11.2000 -0500, Morehouse, Ken wrote:
Why does this script fail when I comment out the DumpData line?
>I get the following error:
>Can't call method "GetData" on an undefined value at E:\perl
>scripts\departwatch
>.pl line 16.
[...]
>Forgot the script sample:
>my $sql="SELECT EMPLOYEE_ID,DepartureDate FROM employee WHERE
>departuredate>=$today";
>print "$sql\n";
>$data->Run($sql);
>         #$data->DumpData;

I can't see methods like "Run" oder "DumpData" in the dbi-module... Maybe 
you write this:

$sth = $dbh->prepare($sql);
$sth->execute();
$rows = $sth->dump_results;

These methods do definitly exist.
Hope this helps
Horshack

--
There is nothing new anymore.
Everything what could be invented,
is already invented.

Charles H. Duell, US Patent Office, 1899

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to