#!/perl/bin/perl -w
print "Content-type: text/html\n\n";
use WWW::Mechanize;
my $mech = WWW::Mechanize->new( );
$mech->agent_alias("Windows Mozilla");
use LWP::Simple;
use HTML::TableContentParser;
$mech->get("http://google.com/");
my $filename = "admin.htm";
print $mech->content;
print "done...............";
$mech->save_content($filename);
die "cud not save ",$mech->response->status_line unless $mech->success;
print "done...............";
here is part of my perl script.
the problem is, i am trying to save that web page but the file named "admin.htm" is not generated. also no error message is generated.
if i put the print $mech -> content statement after "$mech->save_content($filename);" statement, nothing appears on the screen(program must be terminated after $mech->save_content($filename) statement).
any help or suggestion is appreciated .
thnx in advance.