in reply to Global symbol probs...
I think you want something like this here:sub scrapTag # removes image tags from HTML document { while($htmlLines[$i] =~ m/<IMG\s+([^>]+)>/ig)
which will walk the list of lines and execute the substitution for each line. Note - I made no effort to code a correct regexp to achieve the desired resultssub scrapTag { foreach my $line (@htmlLines) { # replace <IMG ...> with nothing. $line =~ s/<IMG\s+([^>]+)>//ig; } }
Michael
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Global symbol probs...
by Anonymous Monk on Aug 07, 2003 at 16:08 UTC |