On Thu, 30 Oct 2008, Carl Mäsak wrote:
Timothy (>):
my $r = <1 2 3>; for $r -> $t { say $t };
Which revision of Rakudo are you running? In my r32239, it outputs "1
2 3" on the same line (i.e. it doesn't iterate over each element).
Oops. My bad. Try either of the following with parrot 0.8.0.
perl6 -e 'my $r = <1 2 3>; for $r.values() -> $t { say $t };'
perl6 -e 'my @r = <1 2 3>; for @r -> $t { say $t };'
The second one changes $r to @r, though.
HTH,
---------------------------------------------------------------------
| Name: Tim Nelson | Because the Creator is, |
| E-mail: [EMAIL PROTECTED] | I am |
---------------------------------------------------------------------
----BEGIN GEEK CODE BLOCK----
Version 3.12
GCS d+++ s+: a- C++$ U+++$ P+++$ L+++ E- W+ N+ w--- V-
PE(+) Y+>++ PGP->+++ R(+) !tv b++ DI++++ D G+ e++>++++ h! y-
-----END GEEK CODE BLOCK-----