> But... would it be possible to exten this proposal so that, if the right
> hand operand is an array or hash variable, it will create a reference to
> this variable?
> 
> That would allow subroutine calls like:
>   foo('names' => @names, 'size' => 'A4', 'labels' => %labels)
> to do the Right Thing.  It would even make the CGI.pm interface easier
> for newbies...

Ditto, I'd love to see => acting like an automatic hashref generator.
Make these equivalent:

   @foo = ( { bar => @value }, two, three );  # P5
   @foo = ( bar => @value, two, three );      # P6

   $foo = { bar => @value };  # P5
   $foo = bar => @value;      # P6

   %foo = ( bar => @value );  # P5
   %foo = bar => @value;      # P6

Just having => be a pseudo-comma is a waste of an operator, IMO.

I suspect Damian's PAIR suggestion can handle this if it's just extended
a little. But I'd like to see the RFC take a stance on this one way or
the other.

-Nate

Reply via email to