Hello all,

I had asked:

> Command 5:
> Why is "- bogus" not treated as a unary minus operation on a
> bareword?  Why does it get stringified and squeezed into
> "-bogus"?  (See Command 7.)

"perldoc perlop" says that this is the intended behaviour:

  || Unary "-" performs arithmetic negation if the operand is
  || numeric.  If the operand is an identifier, a string con�
  || sisting of a minus sign concatenated with the identifier
  || is returned.  [...]

I should have noted this before firing off my email.

peace,               || Udayachal: a newspaper edited by slum children:
--{kr.pA}            || http://tinyurl.com/57jaf
-- 
This .sig intentionally left blank.
 
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to