in reply to Re: Using Mechanize to download a zip file?
in thread Using Mechanize to download a zip file?
=head2 $mech->save_content( $filename ) Dumps the contents of C<< $mech->content >> into I<$filename>. I<$filename> will be overwritten. =cut sub save_content { my $self = shift; my $filename = shift; open( my $fh, ">", $filename ) or $self->die( "Unable to create $f +ilename: $!" ); print $fh $self->content; close $fh; }
update: confirmed and reported
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Using Mechanize to download a zip file?
by Scott7477 (Chaplain) on May 10, 2006 at 23:27 UTC | |
by PodMaster (Abbot) on May 13, 2006 at 03:13 UTC |