Larry Wall wrote:
    No          Yes
    --          ---
    @foo        @foo[1]
    %bar        %bar{"a"} or %barŤať
    $foo.bar    $foo.bar()
    &foo    &foo(1)

I may have missed it, but what are the contexts in these cases? I'm thinking the first two are easily scalar. Are the second list just as if they were inside curly braces, or are the scalar to match the others (or just to be flexibly different)?


In this worldview, $foo is an exception only because it doesn't naturally
have a form that ends with some kind of bracket.

Will "$x[$y]" interpolate? Oh and if $x is a reference to an array, is "$x" a stringified reference or dereferenced (and in which context)? I got it in my head that since things in curlies would be in list context that the others must be scalar/string context. I haven't been able to find a reason for justifing that leap, but I kind of like it. Well for the moment.


Dan

Reply via email to