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
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
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
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