On Jul 3, Paul said:

>> >   foo => 'bar'
>> >   'foo' => 'bar'
>> 
>> And are they the same as:
>> 
>>  "foo" => "bar"
>>  'foo' => "bar"
>
>Those aren't the same.
>"$foo" is very different from '$foo'....
>I think => does interpolative double-ish quoting, doesn't it?

=> does no interpolation.  None is possible/required.  A bareword is
matched by

  /^[A-Za-z_]\w*/

So there's no interpolation needed.

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

NOTE 2: This is cool:

  print -foo;     # -foo
  # print --foo;  # SYNTAX ERROR
  print +-foo;    # -foo
  print -+-foo;   # +foo

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