* "Randal L. Schwartz" <merlyn@stonehenge.com> [2006-11-14T16:34:43]
> >>>>> "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).

(That is some wide quoting!)

That isn't quite true, either.  The dash can be the first character, which is
not true of identifiers.

  DB<1> x [ -x => 1 ]
  0  ARRAY(0x18010cc)
     0  '-x'
     1  1

-- 
rjbs

-- 
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