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

Re: [perl #80628] [PATCH] __SUB__

Thread Previous | Thread Next
From:
Johan Vromans
Date:
December 12, 2010 23:09
Subject:
Re: [perl #80628] [PATCH] __SUB__
Message ID:
m2oc8qm9n3.fsf@phoenix.squirrel.nl
Abigail <abigail@abigail.be> writes:

>> > Technically, it could break programs, as in theory someone could have a sub
>> > named '__SUB__'. It's not something I worry about though.
>> 
>> I thought such names were reserved.
>
> If it is, it's neither enforced, or even protected by a warning:

Neither are subroutines/variable names with all UPPERCASE.

More important is whether it is a keyword, or a compile time constant
like __FILE__ and __LINE__.

-- Johan

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