Thanks for the info,


Bryan,

    Thank you for the info.  I am more engineer than computer scientist, so
please excuse the ignorance behind these questions.


>
> Except that the operator truly is simply an underscore.  But it's also a
> valid identifier character, so where it may be confused with that, you are
> simply required to make it less ambiguous to the parser.
>
> $a _= $b _ $c;  # $a _= $b _$c;
> ${a}_=${b}_$c;
> %h{$s}_="Hello, "_"world!\n";
>
> As Larry said, no different that the other operators that also consist of
> valid character identifiers.

I understand that the operator is just the underscore.  However, in the third
edition of the camel book on page 49, the second paragraph, it states that "An
identifier is a token that starts with a letter or underscore and contains only
letters, digits, and underscores."   Since there are no singel letter operators,
no single digit operators, but now we see the advent of the underscore operator,
it follows that the underscore will be the only operator that could be confused
as part of the variable name.

1) My question is what other operator could be confused with an identifier?

2) Where did Larry say "no different that the other operators that also consist
of valid character identifiers." ?



>
> IIRC, '^' was considered earlier.  (And it's shifted, BTW.)
>

3) What do you mean by shifted?


Thank you ,
Erik Lechak


----------------------------------------------------
Sign Up for NetZero Platinum Today
Only $9.95 per month!
http://my.netzero.net/s/signup?r=platinum&refcd=PT97

Reply via email to