On Fri, May 04, 2001 at 09:06:47PM -0700, Nathan Wiger wrote:
>    %a = (%b : %c);        # flattened like Perl 5

Why not this?

        *%a = (%b, %c);         # flattened. splat!

This makes sense to me since * is already proposed as the slurping
operator and since the LHS is providing context for the RHS.

>    (%a, %b) = (%c, %d);   # kept separate

Indeed.

        (%a,%b) = (%b,%a);      # Swap 'em.

>    (%a, %b) = (%c : %d);  # %a slurps all of flattened %c and %d,
>                           # %b gets nothin'

        (*%a, %b) = (%c,%d);    # %a slurps, %b gets nothing
        (%a, *%b) = (%c,%d);    # %a = %c, %b gets the rest

I'm sure your imaginations can twiddle the cardinality knob
appropriate for generalization  :-)

-Scott
-- 
Jonathan Scott Duff
[EMAIL PROTECTED]

Reply via email to