print "Content-type: text/html\n\n";
my $mech = WWW::Mechanize->new( );
my $filename = "admin.htm";
die "cud not save ",$mech->response->status_line unless $mech->success;
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.