develooper Front page | perl.perl5.porters | Postings from May 2012

Re: qw() Syntax Errors on 5.17

Thread Previous
From:
Father Chrysostomos
Date:
May 27, 2012 23:03
Subject:
Re: qw() Syntax Errors on 5.17
Message ID:
20120528060326.8972.qmail@lists-nntp.develooper.com
David Wheeler asked:
> Sure enough, I don't have the parens there. Good, except: Why don't 5.14
> or 5.16 warn on those? Maybe there are some cases that the warnings miss
> but are properly caught as invalid syntax in 5.17?                              

I think line 145  of t/run.t (version 0.51) is the culprit:

    144 NOEXIT: {
    145     no warnings;
    146 
    147     # Make sure we don't exit the app via `next` or `last`.
    148     for my $mode qw(ping no_ping fixup) {
    149         $conn->mode($mode);
    150         ok !$conn->run(sub { next }), "Return via next should fail";
    151         ok !$conn->run(sub { last }), "Return via last should fail";
    152     }
    153 }


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About