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

Re: [perl #80628] [PATCH] __SUB__

Thread Previous | Thread Next
Johan Vromans
December 12, 2010 23:09
Re: [perl #80628] [PATCH] __SUB__
Message ID:
Abigail <> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About