in reply to Mechanize questions (not very obvious)
Use the Source, Luke
Regarding 1. - no. A WWW::Mechanize object ISA LWP::UserAgent object, so you can only create a new one if you want to start out with a clean slate.
Regarding 2. - looking at the source, $mech->uri gets updated from the request URI whenever the response indicates success. So either make it that way or overwrite the value yourself:
$mech->{uri} = $my_new_uri;
Regarding 3. - I've used Hook::LexWrap to wrap my code around some WWW::Mechanize functions while writing WWW::Mechanize::Shell.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Mechanize questions (not very obvious)
by wandererer (Initiate) on Jun 15, 2007 at 20:55 UTC |