Why does the use find the file and the require does not?
The Win32.pm is located in, C:\Perl\lib\Win32.pm
Can't locate Win32::OLE qw(in with) in @INC (@INC contains:
/package0/filpods/loaders . C:\Program Files\ActiveState Komodo
3.1\dbgp\perllib C:\perl\lib C:\perl\site\lib C:\Program
Files\ActiveState Perl Dev Kit 6.0\lib\ C:/Perl/lib C:/Perl/site/lib) at
Y:\FILPODS\DB\loaders\factsheet_extract.pl line 30.
Code example cause error:
$win32ole = 'Win32::OLE qw(in with)';
$winconst = "Win32::OLE::Const 'Microsoft Outlook'";
if ($^O eq 'MSWin32'){
require $win32ole;
require $winconst;
$Win32::OLE::Warn = 3; # die on errors...
}
Code example does not cuase error:
if ($^O eq 'MSWin32'){
use Win32::OLE qw(in with);
use Win32::OLE::Const 'Microsoft Outlook';
$Win32::OLE::Warn = 3; # die on errors...
}
regards
Mark Drobnis
Work: 617-563-5717
Email: [EMAIL PROTECTED]
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs