Still Error when connecting to database using Win32::ODBC

M

madan

sir,

still the same error...befor i tried with strict and warning but didnt
execute...the same is the case when i included strict and warning...
the following errors are shown on browser...

#########
Undefined subroutine &Scalar::Util::blessed called at
W:/usr/lib/overload.pm line 89.
Compilation failed in require at W:/usr/lib/Config.pm line 70.
Compilation failed in require at W:/usr/site/lib/Win32/ODBC.pm line 27.
Compilation failed in require at W:/cgi-bin/dbtest.pl line 8.
BEGIN failed--compilation aborted at W:/cgi-bin/dbtest.pl line 8.
##########
 
M

Mumia W.

madan said:
sir,

still the same error...befor i tried with strict and warning but didnt
execute...the same is the case when i included strict and warning...
the following errors are shown on browser...

#########
Undefined subroutine &Scalar::Util::blessed called at
W:/usr/lib/overload.pm line 89.
Compilation failed in require at W:/usr/lib/Config.pm line 70.
Compilation failed in require at W:/usr/site/lib/Win32/ODBC.pm line 27.
Compilation failed in require at W:/cgi-bin/dbtest.pl line 8.
BEGIN failed--compilation aborted at W:/cgi-bin/dbtest.pl line 8.
##########

madan, I think you are probably a nice person who doesn't know any
better, so I want to give you advice.

Read these pages:
http://mail.augustmail.com/~tadmc/clpmisc.shtml
http://www.catb.org/~esr/faqs/smart-questions.html

You're creating too many threads with the same information in them. Try
to keep to a single thread per issue, or you might be killfiled.

I don't have a Windows system, so I can't run your program to test it,
but I can give you some more advice:

Make sure that Scalar::Util is installed properly. "Use" David Squire's
advice and "use strict;" and "use warnings"; those might help you fix
the error without our help. Create a simple script that contains only this:

use strict;
use warnings;
use lib 'W:/cgi-bin/lib';
use CGI::Carp 'fatalsToBrowser';
use CGI;
use Scalar::Util ();
use Win32::ODBC;

print CGI::header('text/plain');
print "It worked--I got here\n";

__END__


If one of those lines fails, it'll point you in the direction of the
problem.

Make sure that the version of Win32::ODBC that you're using is
compatible with the version of perl that you're using. If you continue
to have problems with Win32::ODBC, un-install and reinstall it, but do
not do that until every other option is explored.



HTH
 
M

madan

hi sir..
thanks for ur reply...my problem is solved..i changed the path to my
perl intrepeter from
"#! /usr/bin/prel " to "#! c:\perl\bin\perl";
thats the actual problem...
now it working fine...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top