>>>>> "Rob" == Rob Dixon <[EMAIL PROTECTED]> writes:

Rob> This is indeed a documentation bug. perlop says, in full:

Rob> ~ The "=>" operator is a synonym for the comma, but forces any word 
(consisting
Rob> ~ entirely of word characters) to its left to be interpreted as a string 
(as of
Rob> ~ 5.001). This includes words that might otherwise be considered a 
constant or
Rob> ~ function call.

So we just need to add "but does not start with a digit" to that sentence.
That's true in folklore, but not in the docs yet.  Yeah, docbug.
I'm sure the author there intended the same definition as is used for
Perl identifiers (variable names, package names, etc).

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to