thanks for the advice mr danger -- i checked out a CVS copy, and needed to twiddle the version number as well.
have to say, i'm excited... even by my first for loop - parallel iteration is cool! likewise with the hyper operators - just like an even more brief map {} LIST. um... not sure about _ for concatenation though... call me a heretic, but i'd prefer an overloaded '+' to concatenate strings and '*' to repeat strings (a la perl5 'x' operator)... more parametric polymorphism please...
print "hello perl6 world\n"; my int @list1 = ( 1 .. 10 ); my int @list2 = @list1 ^* 2; my int $i = 0; for @list1; @list2 -> $a; $b { print "list iteration " _ ++$i _ ": a is " _ $a _ "; b is " _ $b _ "\n"; }
this works! although the contents of @list2, once hyper-doubled, appear to be (ie they print as) floating point numbers. nevertheless, this is extremely exciting.
matt
In reply to Re: Re: Wanted: Perl 6 Programmers
by d_i_r_t_y
in thread Wanted: Perl 6 Programmers
by educated_foo
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |