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 " This piece of code will get ALL the "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 (1.

RE: LWP get_tag('img')

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

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 " This piece of code will get ALL the "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 (1..11) , very unsucessful... :~)

LWP get_tag('img')

2004-12-09 Thread Brian Volk
Hi All, I'm having trouble narrow down the correct "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 (1..11) , very unsucessful... :~) Any suggestions would be greatly appreciated Here is