develooper Front page | perl.perl6.language | Postings from May 2006

Re: [svn:perl6-synopsis] r9076 - doc/trunk/design/syn

Thread Previous | Thread Next
From:
james
Date:
May 1, 2006 16:44
Subject:
Re: [svn:perl6-synopsis] r9076 - doc/trunk/design/syn
Message ID:
20060501234424.GA5994@desert-island.dynodns.net
On Mon, May 01, 2006 at 10:32:02AM -0700, autrijus@cvs.perl.org wrote:
> Log:
> * S03.pod: Retire lvalue undef and replace it with lvalue Whatever:
> 
>     # Perl 5
>     (undef, undef, $x) = (1,2,3);
> 
>     # Perl 6
>     (*, *, $x) = (1,2,3);

Is my ($foo, *, $bar) = 1..3 legal perl6?  my ($foo, undef, $bar) =
1..3; is valid perl5, but AFAIK that is completely undocumented.  (It's
quite useful from time to time -- now if only my (@rest, $almost, $last) =
function_returning_many_thingies could work...

    -=- James Mastros

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About