I guess I shouldn't use printed docs for anything in these discussions.  I looked that
up on paper, and it really does (did) say "synonym".  But things change.  I'd tell you
what version of paper I looked it up on, but the paper doesn't seem to have recorded
its version number.  Perl 5.something.  Probably pretty early.

Perhaps the printed docs should preserve their version, starting with perl6 (or
earlier)... just to remind one of their age...

Bart Lateur wrote:

> On Thu, 10 Aug 2000 17:59:52 -0700, Glenn Linderman wrote:
>
> >I find nothing in the documentation that suggests that => is anything other than a
> >plain comma operator, yet you call it a "first-argument-stringifying comma
> >operator".  In fact, the documentation explicitly claims "=>" is a synonym of ","
> >(see perldata).
>
> I wonder what old version of the docs you are using. My perldata says:
>
>     The `=>' operator is mostly just a more visually distinctive
>     synonym for a comma, but it also arranges for its left-hand operand
>     to be interpreted as a string--if it's a bareword that would be a
>     legal identifier.
>
> Calling "=>" a synonym for "," is not the whole truth. It ignores the
> presence of the word "mostly" in that sentence, for one.
>
> --
>         Bart.

--
Glenn
=====
There  are two kinds of people, those
who finish  what they start,  and  so
on...                 -- Robert Byrne




_____NetZero Free Internet Access and Email______
   http://www.netzero.net/download/index.html

Reply via email to