> 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
- Re: RFC 84 (v1) Replace => (stringi... Randal L. Schwartz
- Re: RFC 84 (v1) Replace => (stringifyin... Nick Ing-Simmons
- Re: RFC 84 (v1) Replace => (stringifying co... Jeremy Howard
- Re: RFC 84 (v1) Replace => (stringifying co... Bart Lateur
- Re: RFC 84 (v1) Replace => (stringifyin... Simply Hao
- Re: RFC 84 (v1) Replace => (stringi... Bart Lateur
- Re: RFC 84 (v1) Replace => (stringifying comma)... Graham Barr
- Re: RFC 84 (v1) Replace => (stringifying co... Clayton Scott
- Re: RFC 84 (v1) Replace => (stringifying comma)... Damian Conway
- Re: RFC 84 (v1) Replace => (stringifying comma) with... Hildo Biersma
- Re: RFC 84 (v1) Replace => (stringifying comma)... Nathan Wiger
- Re: RFC 84 (v1) Replace => (stringifying comma) with... Graham Barr
- Re: RFC 84 (v1) Replace => (stringifying comma) with... Bart Lateur
- Re: RFC 84 (v1) Replace => (stringifying comma) with... Damian Conway
- Re: RFC 84 (v1) Replace => (stringifying comma) with... Damian Conway
- Re: RFC 84 (v1) Replace => (stringifying comma) with... Damian Conway
- Re: RFC 84 (v1) Replace => (stringifying comma) with... John Porter
- Re: RFC 84 (v1) Replace => (stringifying comma)... Stephen P. Potter
- Re: RFC 84 (v1) Replace => (stringifying co... John Porter