Hi,

    # Perl 5
    my @array_of_references = \($foo, $bar, $baz);
    print [EMAIL PROTECTED];        # prints 3
    print ${ $array_of_references[1] };  # prints $bar

    # Perl 6
    my @array = \($foo, $bar, $baz);
    say [EMAIL PROTECTED];
    # 3 (like Perl 5)?
    # Or 1, making \(...) similar to [...]?

If \(...) still constructs a list of references, are the following
assumptions correct?

    \(@array);   # same as
    [EMAIL PROTECTED];
    # (As () is only used for grouping in this case.)
    # Correct?

    \(@array,);  # same as
    map { \$_ } @array;
    # (As &postcircumfix:{'\\(', ')'} is called here.)
    # Correct?


--Ingo

-- 
Linux, the choice of a GNU | Row, row, row your bits, gently down
generation on a dual AMD   | the stream...
Athlon!                    | 

Reply via email to