in reply to Regexp conundrum

Tricky,
You have most likely created an infinite loop:
while(@htmlLines)
This is not likely what you wanted. You probably want to do a foreach loop where it will go through the array one time or shift the lines off one at a time. The reason being is because the array is being tested in scalar context - which for an array is the number of elements it contains. Unless the number of elements reaches 0 - this will loop forever.

Additionally - I don't think

if(/$pattern1 && $pattern2/)
is what you wanted either. You probably want something more like: if (/$pattern1/ && /$pattern2/) once you defined $pattern1 and $pattern2 correctly.
Sorry - HTH

Cheers - L~R

Replies are listed 'Best First'.
Re: Re: Regexp conundrum
by Tricky (Sexton) on Aug 22, 2003 at 09:38 UTC
    Cheers L-R, I'm working hard on joining the coding community - never thought is was going to be easy. Cheers for the advice folks! T