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

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

Thread Previous | Thread Next
Jesse Vincent
June 2, 2010 08:44
Re: Why are subs matching /^[\W_]$/ global?
Message ID:

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. 



Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About