At Thu, 29 Sep 2005 17:17:21 +1000, Erik de Castro Lopo wrote: > for 1 .. @integer_array { > say "integer_array[$_] = @integer_array[$_]"; > }
Yeah sorry. Did I mention it was my first ever perl6 program? Try this version, note the iterator, the typed array (compile-time checked/optimised) and the bigint. #!/usr/bin/pugs use v6; my int @integer_array = (1, -2, 3, -4, 5, -6, -7, 8, -9, 32727000, 9876543210); for @integer_array.kv -> ($i, $value) { say "integer_array[$i] = $value"; } -- - Gus -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html