LWP get_tag('img')

2004-12-09 Thread Brian Volk
Hi All, I'm having trouble narrow down the correct img tag... This piece of code will get ALL the img tags: while (my $img_tag = $parser-get_tag('img')) { my $i = $img_tag-[1]; my $code = $i-{'src'}; print $code\n } All I want is the 11th one... so I tried to do a foreach

Re: LWP get_tag('img')

2004-12-09 Thread Flemming Greve Skovengaard
Brian Volk wrote: Hi All, I'm having trouble narrow down the correct img tag... This piece of code will get ALL the img tags: while (my $img_tag = $parser-get_tag('img')) { my $i = $img_tag-[1]; my $code = $i-{'src'}; print $code\n } All I want is the 11th one... so I tried to

RE: LWP get_tag('img')

2004-12-09 Thread Brian Volk
Brian Volk wrote: Hi All, I'm having trouble narrow down the correct img tag... This piece of code will get ALL the img tags: while (my $img_tag = $parser-get_tag('img')) { my $i = $img_tag-[1]; my $code = $i-{'src'}; print $code\n } All I want is the

Re: LWP get_tag('img')

2004-12-09 Thread JupiterHost.Net
Flemming Greve Skovengaard wrote: Brian Volk wrote: Hi All, I'm having trouble narrow down the correct img tag... This piece of code will get ALL the img tags: while (my $img_tag = $parser-get_tag('img')) { my $i = $img_tag-[1]; my $code = $i-{'src'}; print $code\n } All I want is