Chaim Frenkel <[EMAIL PROTECTED]> writes:

> >>>>> "PC" == Piers Cawley <[EMAIL PROTECTED]> writes:
> 
> >> How locked in to your brain is this lack of consistency? How un-perlish
> >> would it be to cleanup, crypto-context, or the meaning of a list in
> >> a scalar context, or ...
> 
> PC> Don't you go touching the meaning of a list in a scalar context.
> PC> That's bloody useful that is.
> 
> I don't find this meaningful:
> 
>       sub foo() {  return (1,7) }
>       $x = &foo();            # $x == 7;

Then don't write it like that, write:

    sub foo() { return @{[1,7]} }

Or

    sub foo() { return my @ret = (1,7) }

They both work, and they're unambiguous.

-- 
Piers

Reply via email to