I'm trying to use Regexp::Grammars in an application, but it breaks a lot of other regular expressions. For example, the following code:
$hello = 'hello';
print 'hello 1' if $hello =~ /hello/; #prints "hello 1"
use Regexp::Grammars;
print 'hello 2' if $hello =~ /hello/; #prints nothing
Demonstrates my problem. I'm not sure how to deal with this, except by loading and unloading the module repeatedly, and I'm not even sure I can use the extended regular expressions after I've explicitly unloaded the module with no
. How do I allow normal regular expressions while still getting the power of Regexp::Grammars?