[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl-win32-users
Subject:    Re: Help with Win32::ODBC
From:       "Sisyphus" <sisyphus1 () optusnet ! com ! au>
Date:       2007-11-30 1:42:28
Message-ID: 12471A9070614C87ACB96DD308001E36 () desktop2
[Download RAW message or body]


----- Original Message ----- 
From: "Barry Brevik" <BBrevik@StellarMicro.com>
To: <perl-win32-users@listserv.ActiveState.com>
Sent: Friday, November 30, 2007 11:46 AM
Subject: Help with Win32::ODBC


>I am using the Win32::ODBC module, and I continually get the following
> error message:
>
>  Can't locate auto/Win32/ODBC/GetTypeInfo.al in @INC (@INC contains:
> C:/Perl/site/lib C:/Perl/lib .) at odbcinfo.pl line 58
>

Looking at the documentation at 
http://search.cpan.org/~jdb/libwin32-0.28/ODBC/ODBC.pm there is no mention 
of the GetTypeInfo method. Either it is undocumented or does not exist (in 
that particular version of Win32::ODBC, at least).

The method certainly doesn't exist for the version of Win32::ODBC that you 
are running. Perhaps it exists in an earlier or later version.

As for the error message itself ... it is basically a red herring. When perl 
can't find the GetTypeInfo method it looks for a file called GetTypeInfo.al 
in the chance that the file exists (and defines the GetTypeInfo method). 
When it can't find that file it complains that GetTypeInfo.al can't be 
found. The correct thing for perl to do is to simply complain that the 
GetTypeInfo function is non-existent. There never was, nor should there be, 
a file named GetTypeInfo.al.

It is possible for module authors to write their modules in such a way that 
this "red herring" error message does not appear, and is instead replaced 
with a sane and meaningful message. But not all authors construct their 
modules that way :-)

Cheers,
Rob 

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic