in reply to calling subroutines within a regular expression?
or:if ($s =~ /${\REGEX}/) {
But then what's the point of using constant? May as well:my $re = REGEX; if ( $s =~ /$re/ ) {
my $REGEX = qr/cat/; #... if ( $s =~ /$REGEX/ ) {
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: calling subroutines within a regular expression?
by Your Mother (Archbishop) on Apr 03, 2009 at 23:17 UTC | |
by AnomalousMonk (Archbishop) on Apr 04, 2009 at 00:43 UTC | |
by Your Mother (Archbishop) on Apr 05, 2009 at 05:30 UTC | |
|
Re^2: calling subroutines within a regular expression?
by AnomalousMonk (Archbishop) on Apr 04, 2009 at 00:51 UTC |