diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-01-05 14:30:01 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-01-05 14:30:01 +0000 |
commit | 08f18727250f262830d3b2860052d5b5e6083051 (patch) | |
tree | 49651089048b4da91d185f611869d0ea1ad73627 /ext/re | |
parent | f7c278bfa9715e5e699e162924f507b3b71db8fd (diff) | |
download | perl-08f18727250f262830d3b2860052d5b5e6083051.tar.gz |
Make ext/re/t/re_funcs.t warnings clean.
p4raw-id: //depot/perl@32842
Diffstat (limited to 'ext/re')
-rw-r--r-- | ext/re/t/re_funcs.t | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/re/t/re_funcs.t b/ext/re/t/re_funcs.t index 97f795eac9..c03fce18ab 100644 --- a/ext/re/t/re_funcs.t +++ b/ext/re/t/re_funcs.t @@ -11,6 +11,7 @@ BEGIN { } use strict; +use warnings; use Test::More; # test count at bottom of file use re qw(is_regexp regexp_pattern regmust @@ -42,7 +43,7 @@ use re qw(is_regexp regexp_pattern regmust if ('1234'=~/(?:(?<A>\d)|(?<C>!))(?<B>\d)(?<A>\d)(?<B>\d)/){ my @names = sort +regnames(); is("@names","A B","regnames"); - my @names = sort +regnames(0); + @names = sort +regnames(0); is("@names","A B","regnames"); my $names = regnames(); is($names, "B", "regnames in scalar context"); |