in reply to Re: backreference question.
in thread backreference question.
thank you, graff , that's probably the cause of the problem. I haven't found much on that topic yet. but putting the $resp->content into a scalar before the while loop solve the problem.It's plausible that putting the object's "content" method in a while l +oop has the effect of <br>resetting the regex engine's pointer back t +o the beginning of the string on each iteration.
btw, the $resp is a response object from LWP module,like this
$br = LWP::UserAgent->new;
$resp = $br->get("http://www.example.com");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: backreference question.
by tilly (Archbishop) on Jun 01, 2004 at 07:24 UTC | |
by Jasper (Chaplain) on Jun 01, 2004 at 08:53 UTC | |
by tilly (Archbishop) on Jun 01, 2004 at 09:20 UTC | |
by Qiang (Friar) on Jun 01, 2004 at 17:45 UTC |