develooper Front page | perl.perl5.porters | Postings from June 2008

Re: [perl #36673] sub foo(@$) {} should generate an error

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
June 8, 2008 01:58
Subject:
Re: [perl #36673] sub foo(@$) {} should generate an error
Message ID:
b77c1dce0806080158p75802c76x43641933c0d9b85@mail.gmail.com
2008/5/26 Renée Bäcker <renee.baecker@smart-websolutions.de>:
> I've revised the patch. Now the warning applies to %, too. And it checks if
> _ is used before the ;.

Thanks, applied as #34021, with a few changes :

I changed the test to go in t/lib/warnings/toke instead of
t/comp/proto.t. I think that warnings tests from proto.t should be
moved to t/lib/warnings/toke too. Want to try it ?:)

Also, your patch was incorrectly emitting warnings even when warnings
were off. I fixed that.

Thread Previous | Thread Next


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