Re: Mechanize Redirect

2008-08-09 Thread Merdinus
On Aug 9, 9:30 am, [EMAIL PROTECTED] (Rob Dixon) wrote: > Merdinus wrote: > > > Have seen this issue addressed on this board in the past, but can't > > figure out exactly what I need to do. > > > I'm using WWW::Mechanize and a webpage seems to be redirecting me but > > Mechanize doesn't seem to fol

Re: Break out of the sub or loop on keypress

2008-08-09 Thread Rob Dixon
Michael Alipio wrote: > > I have a sub that returns a value and inside it runs a loop that displays > something on the screen, say a list of numbered items. Now what I want to do > is if the item i'm interested appears on the screen, the user can hit any key > and the program will exit the sub an

Re: Break out of the sub or loop on keypress

2008-08-09 Thread Mr. Shawn H. Corey
On Sat, 2008-08-09 at 14:42 -0700, Michael Alipio wrote: > Hi, > > I have a sub that returns a value and inside it runs a loop that displays > something on the screen, say a list of numbered items. Now what I want to do > is if the item i'm interested appears on the screen, the user can hit any

Break out of the sub or loop on keypress

2008-08-09 Thread Michael Alipio
Hi, I have a sub that returns a value and inside it runs a loop that displays something on the screen, say a list of numbered items. Now what I want to do is if the item i'm interested appears on the screen, the user can hit any key and the program will exit the sub and return what ever it is s

Re: LWP module part of the standard distribution ?

2008-08-09 Thread Rob Dixon
Tobias Eichner wrote: > > I wonder if the LWP module is part of the standard distribution of Perl or > not? According the list provided by Module::CoreList it isn't (tested > versions 5.006, 5.008 and 5.010), but it seems that it is widely spread > nevertheless. > > Can I rely upon LWP.pm being a

Re: Mechanize Redirect

2008-08-09 Thread Rob Dixon
Merdinus wrote: > > Have seen this issue addressed on this board in the past, but can't > figure out exactly what I need to do. > > I'm using WWW::Mechanize and a webpage seems to be redirecting me but > Mechanize doesn't seem to follow it. I've heard to "Add the header > 'Accept: text/html'" but

Re: LWP module part of the standard distribution ?

2008-08-09 Thread Jeff Pang
Tobias Eichner 写道: > I wonder if the LWP module is part of the standard distribution of Perl or > not ? According the list provided by Module::CoreList it isn't (tested > versions 5.006, 5.008 and 5.010), but it seems that it is widely spread > nevertheless. > > Can I rely upon LWP.pm being ava

Re: Mechanize Redirect

2008-08-09 Thread Jeff Pang
Merdinus 写道: > I'm using WWW::Mechanize and a webpage seems to be redirecting me but > Mechanize doesn't seem to follow it. I've heard to "Add the header > 'Accept: text/html'" but alas I don't know how to add the header, or > what that means. > Hi, The $mech->request() method will process red

Mechanize Redirect

2008-08-09 Thread Merdinus
Have seen this issue addressed on this board in the past, but can't figure out exactly what I need to do. I'm using WWW::Mechanize and a webpage seems to be redirecting me but Mechanize doesn't seem to follow it. I've heard to "Add the header 'Accept: text/html'" but alas I don't know how to add

LWP module part of the standard distribution ?

2008-08-09 Thread Tobias Eichner
I wonder if the LWP module is part of the standard distribution of Perl or not ? According the list provided by Module::CoreList it isn't (tested versions 5.006, 5.008 and 5.010), but it seems that it is widely spread nevertheless. Can I rely upon LWP.pm being available on all web server (CGI) i