Hi everyone,
Can anyone help me in my problem. I have written a perl script that reads a flat file and does some processing and then insert the rows in database.
This program runs perfectly when I run it from command line in unix but doesn't connect with database when it is applied in cron. the database handler is empty. I have tried eval on insert statement and the error it gives is "Can't call method "do" on an undefined value". and when I use this statement
$dbh = DBI->connect($dsn, $user, $password,{ RaiseError => 1, AutoCommit => 0 });
it doesn't proceed anywhere in the program and terminates write there without printing any error.
Kindly help me as soon as possible.