F
francescomoi
Hi.
I'm trying to call a function:
----------------------
use DBI;
....
do my_function();
....
sub my_function()
{
....
my $q1 = $DB->prepare($sql1) or die ("Error");
....
}
--------------------
But this function's got an error and returns to the line where I call
'my_function', without being able to visualize the Error.
Is it possible to view the error message within the function?
Thank you very much.
I'm trying to call a function:
----------------------
use DBI;
....
do my_function();
....
sub my_function()
{
....
my $q1 = $DB->prepare($sql1) or die ("Error");
....
}
--------------------
But this function's got an error and returns to the line where I call
'my_function', without being able to visualize the Error.
Is it possible to view the error message within the function?
Thank you very much.