On Jul 3, Paul said:

>> NOTE: -foo is a NOT bareword.  The unary - before that which WOULD be
>> a bareword makes it NOT a bareword.

Correction: -foo is NOT a bareword.  It is a unary - in front of a
bareword.

>From perlop:

     Unary "-" performs arithmetic negation if the operand is
     numeric.  If the operand is an identifier, a string
     consisting of a minus sign concatenated with the identifier
     is returned.  Otherwise, if the string starts with a plus or
     minus, a string starting with the opposite sign is returned.
     One effect of these rules is that -bareword is equivalent to
     "-bareword".

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
I am Marillion, the wielder of Ringril, known as Hesinaur, the Winter-Sun.
Are you a Monk?  http://www.perlmonks.com/     http://forums.perlguru.com/
Perl Programmer at RiskMetrics Group, Inc.     http://www.riskmetrics.com/
Acacia Fraternity, Rensselaer Chapter.         Brother #734
**      Manning Publications, Co, is publishing my Perl Regex book      **

Reply via email to