Using this Perl script below, I am trying to change the homepage for the Internet Explorer browser by calling on a system fucntion. How do I call and modify the system file that contains Internet Explorer's homepage to change the url in it? *I am using the header 'use Win32::OLE.'
I had a few logical errors on my original post. This one is error-free. Thanks!
#!/usr/bin/perl
use Win32::OLE;
print "What url would you like to make as Internet Explorer's home page?\n";
print "(no spaces, the url as you normally see it on the adderess bar)\n";
chomp($url=<STDIN>);
while (!$url)
{
print "You did not make and entry! Please enter a url.\n";
chomp($url=<STDIN>);
}
while ($url)
{
if ($url =~ /\s/)
{
print "That's not a url! You entered a space somewhere. Re-enter:\n";
chomp($url=<STDIN>);
}
*CODE TO CHANGE HOME PAGE in IE GOES HERE*
print "\nYour home page in IE has been changed! Re-open IE and see!";
exit;
}