use strict;
use warnings;
-our $VERSION = "0.19";
+our $VERSION = "0.19_01";
our @ISA = qw(Exporter);
our @EXPORT_OK = ('regmust',
qw(is_regexp regexp_pattern
my $reflags = $^H{reflags} || 0;
my $seen_charset;
while ($s =~ m/( . )/gx) {
- $_ = $1;
+ local $_ = $1;
if (/[adul]/) {
# The 'a' may be repeated; hide this from the rest of the
# code by counting and getting rid of all of them, then
use strict;
-use Test::More tests => 14;
+use Test::More tests => 15;
require_ok( 're' );
# setcolor
eval"no re Debug=>'ALL'";
ok( $ok, 'No segv!' );
+my $message = "Don't tread on me";
+$_ = $message;
+re->import("/aa");
+is($_, $message, "re doesn't clobber \$_");
+
package Term::Cap;
sub Tgetent {