in reply to Re: mixing www::mech and lwp::UA
in thread mixing www::mech and lwp::UA

Hi.

I'm not exactly sure what that means, that I don't need to explicility use and create and object instance of both.

From that, I imagined you meant that I could just call LWP::UserAgent and perform WWW::Mech functions without calling WWW::Mech. So from that, I tried

$ua->agent_alias("Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) +");
And it errors out saying there's no object method agent_alias.

Do I have it backwards? If I call WWW::Mech, can I then use any LWP::UA methods I want?

Replies are listed 'Best First'.
Re^3: mixing www::mech and lwp::UA
by Joost (Canon) on Nov 27, 2006 at 20:16 UTC