Wed, 16 Feb 2005 15:14:42 -0800
Not sure if this is off topic but I have a question about converting a
VBScript into Perl(Script). I can't figure out how one would go from
converting a few lines like the following to Perl:
Set objConnections = CreateObject("AnObject.Connections")
If IsObject(objConnections) Then
If objConnections is Nothing Then
WScript.echo "CreateObject failed."
WScript.echo "CreateObject successful."
Set objConnection = objConnections("My New Connection")
$objConnections = Win32::OLE->new("AnObject.Connections")
or die Win32::OLE->LastError;
print "Creation successful.\n";
I don't know how here to set $objConnection.
Thanks in advance,
ActivePerl mailing list
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs