in reply to Re: Re: Re: Re: Re: regex "o" modifier
in thread regex "o" modifier

It says chaining, not concatenating.
my $re = qr!yes|no!; my $re2 = qr!${re}\sthankyou!; print "polite yes or no\n" if "yes thankyou" =~ $re2;

Makeshifts last the longest.

Replies are listed 'Best First'.
Re: Re^6: regex "o" modifier
by edoc (Chaplain) on May 07, 2003 at 06:28 UTC
    but that's the same as what they refer to as "interpolate into larger patterns". They offer chaining as an alternative.. seemingly to avoid re-compilation..