The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: perl.perl6.language
From: fibon...@babylonia.flatirons.org (Luke Palmer)
Date: 18 Jul 2003 17:51:51 -0600
Local: Fri, Jul 18 2003 7:51 pm
Subject: Re: Aliasing an array slice
> David Storrs wrote: Of course. > > Thinking about it, I'd rather see lvalue slices become a nicer version > > my @start = (0..5); > > @a[1..3] = qw/ a b c d e /; > What would happen if I used 1,2,3 instead of 1..3? Would it do the same > I wanna know what happens if I do: It would probably do the same as in Perl 5; the same thing as: > @a[0,2,4] = qw/ a b c d e /; @a[0,2,4] = << a b c >>; (those << >> brackets are new shorthand for qw, not that qw is going Luke > --
> $a=24;split//,240513;s/\B/ => /for@@=qw(ac ab bc ba cb ca > );{push(@b,$a),($a-=6)^=1 for 2..$a/6x--$|;print "$@[$a%6 > ]\n";((6<=($a-=6))?$a+=$_[$a%6]-$a%6:($a=pop @b))&&redo;} You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||