Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] Error occuring when connecting to database using Win32::ODBC

Expand Messages
  • Jenda Krynicky
    From: madan_narra_chowdary ... Drop the require above. The use CGI bellow is enough to load the module. ... The error
    Message 1 of 2 , Jun 9, 2006
    • 0 Attachment
      From: "madan_narra_chowdary" <madan_narra_chowdary@...>
      > hi all,
      > i am new to perl...
      > i am getting a error when i use Win32::ODBC..Please check it out and
      > see weather its working on ur systems..i need to connect to
      > database...
      >
      > the code is listed below
      > #######################################3
      > #! /usr/bin/perl
      > use strict;
      > use warnings;
      > use lib '/cgi-bin/lib';
      > require("CGI.pm");

      Drop the require above. The "use CGI" bellow is enough to load the
      module.

      > use CGI::Carp 'fatalsToBrowser';
      > use CGI;
      > use Win32::ODBC;
      > my $cgi = CGI->new;
      > ...
      >
      > ############################
      > The following error is coming only when i use Win32::ODBC module..
      > when i removed it the program is working fine..I checked the dsn,user
      > name and password all are right... the following error is shown on the
      > 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 7.
      >
      > BEGIN failed--compilation aborted at W:/cgi-bin/dbtest.pl line 7.
      > ######################################################################

      The error happens as soon as you try to load the Win32::ODBC module
      so the dsn and other stuff is irrelevant.

      What version of Perl do you have (run perl -v) and what version of
      Win32::ODBC?

      Jenda
      ===== Jenda@... === http://Jenda.Krynicky.cz =====
      When it comes to wine, women and song, wizards are allowed
      to get drunk and croon as much as they like.
      -- Terry Pratchett in Sourcery
    Your message has been successfully submitted and would be delivered to recipients shortly.