I want to stop this on machines w/o Excel or if on Linux:
No type library matching "Microsoft Excel" found at Export.pm line 38
Win32::OLE(0.1502): GetOleTypeLibObject() Not a Win32::OLE::TypeLib object at C:/Dev/Perl/site/lib/Win32/OLE/Const.pm line 45.
Use of uninitialized value in eval "string" at Export.pm line 36
Here is what I have in the file, I am *trying* to trap the error...
BEGIN
{
eval
{
use Win32::OLE qw(with);
use Win32::OLE::Const 'Microsoft Excel';
$Win32::OLE::Warn = 2;
};
if ($@)
{
print "Couldn't load Excel Constants: [EMAIL PROTECTED]";
}
else
{
eval "$xlLine = xlLine";
eval "$xlRows = xlRows";
}
}thanks for any suggestions!!!
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
_______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
