http://qs321.pair.com?node_id=9331

jmpvm has asked for the wisdom of the Perl Monks concerning the following question:

newbie question:

I am wring a perl script that loads an entire HTML document into an array as lines. What I want to do is search through each line of the array for "img src=" tags and pull the image URL out. I then want to insert a NEW image URL in its place. There MAY be multiple "img src" tags per line.

I was thinking of using INDEX to find the beginning of the img src tag, but then how do I find the end? There MUST be a better way then using INDEX.. Anyone?

Thanks.