I have the following code to open a browser in Perl
$IE = Win32::OLE->new("InternetExplorer.Application");
$IE->{visible} = 1; #BTW what is visible doing here?
$IE->Navigate("http://google.com");
# Now I want to close the current window, how would I do this?
I tried:
$IE->close(); and $IE->close;
Nothing happened.
Try this I have tested it and it works: