Re: [Pugs] Some experiments with the for loop

2005-03-16 Thread Larry Wall
On Wed, Mar 16, 2005 at 06:52:31PM +1100, Andrew Savige wrote: : # length() and bytes() seem not implemented yet (?) ... And length will never be implemented because that word is now taboo, because it is not specific enough as to units in a Unicode world. More specific methods are now used:

[Pugs] Some experiments with the for loop

2005-03-15 Thread Andrew Savige
This little program worked as I expected: my @x = ( "abc\n", "defg\n" ); for @x -> $k { print($k); # length() and bytes() seem not implemented yet (?) ... # so try to get length via split my $len = +split("", $k); say("len=$len"); } So far so good. Now try this instead: m