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

[email protected] (Jesse Vincent)
Newsgroups perl.perl5.porters
Message-ID <[email protected]>


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

--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.