Re: Tokeparser - Nested loops?




<usenet@xxxxxxxxxxxxxxx> wrote in message
news:1131869610.991717.228470@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> DVH wrote:
> > it only picks up the first URL and the trimmed_text, then gives up.
>
> Perl never "gives up." What do you mean? Do you mean your script dies
> on this line:
>
> > my $text = get( $url ) or die $!;
>
> What is the error message it returns?
>

No error message. It correctly returns the first URL and the trimmed text,
and pushes them into 'link' and 'title'. But until I started trying to get a
second 'while' loop working, it returned twelve URLs and the corresponding
trimmed_text, instead of only one as it does now.

Clearly it finds the first conditions of the loop true, but the remaining
ones false. I'm not sure why?


.