in reply to Boolean??

Judging from the documentation on Win32::Ole:

The LastError() class method returns the last recorded OLE error.

and:

The last OLE error is automatically reset by a successful OLE call.

I'd say that LastError returns a true value if there was an error. If that is true, you can write:

if (Win32::OLE->LastError()) { print "Virtual directory was not created ($!).\n"; } else { print "Virtual directory created successfully.\n"; }

I might be wrong, because I've never used Win32::Ole, but if I am, I'm sure somebody will correct me.

Replies are listed 'Best First'.
Re^2: Boolean??
by mbayer (Novice) on Apr 11, 2005 at 16:16 UTC
    That did it, thank you very much. Perl is very generous off the bat with alot of functionality that you would have to build/call like with Java/C/C++... Thanks.