in reply to Re: Rumors of Next Apocalypse
in thread Rumors of Next Apocalypse

Hey, that's awesome. If I understood it, the following regex is much simpler:

my $var = '...'; print 'Good' if '...Ovid' =~ /\Q$var\E(?=Ovid)/;

That regex is going to become:

/$var<before:Ovid>/

Much nicer :)

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.