re-engine-GNU
view release on metacpan or search on metacpan
lib/re/engine/GNU.pm view on Meta::CPAN
}
sub import {
my $class = shift;
$^H{regcomp} = ENGINE;
if (@_) {
my %args = @_;
if ( exists $args{'-debug'} ) {
$^H{ __PACKAGE__ . '/debug' } = $args{'-debug'};
}
if ( exists $args{'-syntax'} ) {
$^H{ __PACKAGE__ . '/syntax' } = $args{'-syntax'};
}
}
}
sub unimport {
my $class = shift;
if ( exists( $^H{regcomp} ) && $^H{regcomp} == ENGINE ) {
delete( $^H{regcomp} );
}
}
1;
__END__
=pod
( run in 1.010 second using v1.01-cache-2.11-cpan-49f99fa48dc )