prabudass has asked for the wisdom of the Perl Monks concerning the following question:

I need to save the .html file via internet explorer through perl. Kindly advise me which module is used to create object for "internet explorer" and then how to save the .html file.

Thanks,
Prabudass

Replies are listed 'Best First'.
Re: How to save the .html file?
by Anonymous Monk on Oct 21, 2009 at 09:42 UTC
Re: How to save the .html file?
by Unforgiven (Hermit) on Oct 21, 2009 at 13:44 UTC

    If you're just trying to save the HTML file, and in an automated way (I'm guessing this is the case, or you could just click "save as"), why not just use something like wget? I don't see that Perl enters into it at all, really.

    Failing that, have a look at LWP or WWW::Mechanize, if you're doing this as part of a script.

Re: How to save the .html file?
by pemungkah (Priest) on Oct 21, 2009 at 23:18 UTC
    There are a lot of ways to automate IE, but if you are just grabbing the HTML and saving it, you'll be writing a lot more code to do it.

    Try LWP::Simple:

    use LWP::Simple; my $url = $ARGV[0]; my $file = "c:\Documents\savefile.htm"; getstore($url,$file);
    Can't get much easier than that!