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

Re: Why are subs matching /^[\W_]$/ global?

Thread Previous | Thread Next
From:
Jesse Vincent
Date:
June 2, 2010 08:44
Subject:
Re: Why are subs matching /^[\W_]$/ global?
Message ID:
20100602154306.GH26842@fsck.bestpractical.com



On Wed, Jun 02, 2010 at 02:03:26PM +0000, ?var Arnfj?r? Bjarmason wrote:
> >
> > Basically, it comes down to, "if it global, you can't have it anyway".
> 
> Right, but if it's reserved by perl, perhaps we should warn and
> eventually prohibit uses of these constructs. As-is you can define and
> use a sub called *, even though it's reserved.

This would make me very unhappy. As an earlier commenter suggested, this
is a great place for a Perlcritic policy, not for a blanket prohibition. 

-Jesse

-- 

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