in reply to Re: Regex question
in thread Regex question

Uch.. problem is I'm doing a BUNCH of stuff within the "if" loop based on this match..

if ( $string =~ m/(foobar)/ ) { $match = $1; push (@array, $match); bunch of other stuff... }

I'll try and do some more fiddling with the else though..

Thanks

Replies are listed 'Best First'.
Re: Re: Re: Regex question
by Happy-the-monk (Canon) on Mar 19, 2004 at 23:34 UTC

    problem is I'm doing a BUNCH of stuff within the "if" ...

    I can't see where there would be a problem yet. Do you care to explain?

    On a side note: if does no loop. Call it an "if-block". Cheers, Sören