--- Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> wrote:
> 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.
Good to know. Rather than interpolate, it just doesn't quote things
that would require interpolation. Makes sense.
> 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
This hurts my head.
If it's not a bareword, not a keyword, etc., would you say the unary
minus is quoting it? What gives?
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/