Juerd wrote:

But will they also see "foo" ~ $bar as something different from
"foo$bar"?

They ought to, since the two are different in Perl 5.
For example:

    my @bar = 'bar';
    print "[EMAIL PROTECTED]";
    print "foo[" . @bar . "]baz\n";


And what context does "foo{ $bar }" use?

Stringification, of course. No interpolation is occurring.


In my opinion, making the string value in interpolation different from
the value in Str context is madness.

It's dwimmery. Which often looks like madness until you realize that it's just a reflection of how most hackers think. ;-)

Damian

Reply via email to