This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pat_re_eval.t: remove 'no warnings'
authorDavid Mitchell <davem@iabyn.com>
Thu, 8 Dec 2011 16:27:33 +0000 (16:27 +0000)
committerDavid Mitchell <davem@iabyn.com>
Wed, 13 Jun 2012 12:32:47 +0000 (13:32 +0100)
commit171982dbfbc9b93f4cac3f310f1122acd29d7877
treea02c05c7ebbe7558a0b75cc645facdcda3397ad5
parent87c6a48bb8740a7c85d7311317254308cc7a28db
pat_re_eval.t: remove 'no warnings'

Now the the closure behaviour of code blocks within regexes is mostly
fixes, remove the

    no warnings qw(uninitialized closure);

that protected many of the closure tests.

This also showed up that one of my recent tests didn't realise
the whose test file is wrapped in a sub, so my test code destructor
looked like

    sub run_tests {
...
my $d;
sub DESTRUCTOR { $d++ }
...
    }

so fix that test to remove the closure warning.
t/re/pat_re_eval.t