List assignment question

2006-11-14 Thread Vincent Foley
Hello everyone, I was toying around with Pugs and I tried the following Perl 5 list assignment my ($a, undef, $b) = 1..3; Which gave me the following error message: Internal error while running expression: *** Unexpected "," expecting word character, "\\", ":", "*" or parameter na

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

2006-11-14 Thread pmichaud
Author: pmichaud Date: Tue Nov 14 09:07:04 2006 New Revision: 13477 Modified: doc/trunk/design/syn/S04.pod Log: Correct punctuation. Modified: doc/trunk/design/syn/S04.pod == --- doc/trunk/design/syn/S04.pod(

Re: generic ordinal-relevant operators

2006-11-14 Thread TSa
HaloO, Smylers wrote: BTW, could we define that the arithmetic shift ops do just that, whereas the string ones do logical shift? And in addition that for the bit inversion +^$a == -1 - $a holds? Note that -1 == +^0. Does that assume a two's complement system? Is that a safe assumption to mak

Re: named sub-expressions, n-ary functions, things and stuff

2006-11-14 Thread Dr.Ruud
Smylers schreef: > my $whatever > = do { my $baz = $bar * 17; my $quux = $baz - 3; $baz / $quux }; ($bar better not be 3/17) Just a rewrite: my $whatever = do { my $quux = (my $baz = $bar * 17) - 3; $baz / $quux }; And maybe even something like: my $whatever = do