ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-win32-porters
perl-win32-porters
OLE Issue while Porting from Perl 5.6 to Perl 5.8
by Frank Merrow other posts by this author
Jul 17 2007 1:50PM messages near this date
view in the new Beta List Site
Hash Issue while Porting from Perl 5.6 to Perl 5.8 | RE: OLE Issue while Porting from Perl 5.6 to Perl 5.8
I suspect this is not so much a Perl 5.8 issue as a "OLE Upgrade" issue.

Our Perl 5.6 installation has version 0.1601 of OLE.pm, while the 
Perl 5.8 installation installs 0.1707.

I have an existing COM function that returns a BSTR.

Under Perl 5.6 if the BSTR is "empty" then Perl returned undef.

However, under Perl 5.8 if the BSTR is empty then Perl returns the 
null string ("").

Unfortunately, the software counts on the undef behavior and returned 
empty on error and "" as a valid value (in some cases).

I'm have multiple inherited classes that I am trying to wade my way 
through, but it isn't clear to me at what level the error even occurs.

I was hoping something as simple as Win32::OLE-> Options("Variant") 
would fix it, but it doesn't seem to.

If anyone has any insight to how OLE was changed in these versions I 
would appreciate some guidance.

Frank

_______________________________________________
Perl-Win32-Porters mailing list
Perl-Win32-Porters@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Frank Merrow
Jan Dubois
Frank Merrow
Frank Merrow

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved