wilbur has asked for the wisdom of the Perl Monks concerning the following question:
something like:$test =~ /^foo /; $test =~ / bar$/;
@compare = "/^foo /", "/ bar$/"; $i=0 foreach (@compare){ unless $test =~ @compare[$i]){ print $test; $i++ }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regular expressions and Arrays
by broquaint (Abbot) on Apr 26, 2004 at 16:59 UTC | |
|
Re: Regular expressions and Arrays
by kvale (Monsignor) on Apr 26, 2004 at 17:01 UTC | |
|
Re: Regular expressions and Arrays
by Enlil (Parson) on Apr 26, 2004 at 17:46 UTC | |
|
Re: Regular expressions and Arrays
by bart (Canon) on Apr 26, 2004 at 19:23 UTC | |
|
Re: Regular expressions and Arrays
by pizza_milkshake (Monk) on Apr 26, 2004 at 21:39 UTC | |
|
Re: Regular expressions and Arrays
by ccn (Vicar) on Apr 26, 2004 at 16:59 UTC |