Hello ,

I have a very simple Perl script perfectly running on command line.

In order to take advantage from Eclipse Debugger I imported such prohram into 
Eclipse and installed Epic Plugin but when trying to run the program I get the 
following error (see attached file MyEclipseErr.bmp):

The content of Eclipse @INC env variable is the following.

D:\Work_Projects\PerlEducation\MyPrograms\Fantacalcio>perl -e "print qq(@INC)"

C:/Perl/site/lib C:/Perl/lib .

 

I tried to manually copy the DB2.pm file in one of the two directories 
specified by the @INC env variable but could not succeed

Here is my simple program:

#!/usr/bin/perl

print "My Program starts \n\n";

&DeleteRosa;

sub DeleteRosa

{

use DBI;

use DBD::DB2::Constants;

# Delete all the rows from DB2 table ROSA

# Issue a DB2 connect to FANTA database using DBI driver and store the db 
handler in the variable $dbh

$dbh = DBI->connect("dbi:DB2:FANTA", db2admin, db2admin) or die "Can't open 
connection : $DBI::errsts";

# Define the SQL statement doing the insert

$stmt = "DELETE FROM ADMINISTRATOR.ROSA";

# Do the DB2 prepare SQL statement

$sth = $dbh->prepare($stmt);

# Do the DB2 EXECUTE for SQL statement

$sth->execute();

}

 

Is there any explanation on the fact that if I run from command line it 
definitively works while from eclipse doesn't? 

What do I need to add to my ecplipse env to make the perl script to work?

Thanks in advance and bye

 

 

 

 

Alice Messenger ;-) chatti anche con gli amici di Windows Live Messenger e 
tutti i telefonini TIM! 
<http://maileservizi.alice.it/alice_messenger/index.html?pmk=footer> 

Reply via email to