Author: larry Date: Sat Feb 25 02:30:24 2006 New Revision: 7869 Modified: doc/trunk/design/syn/S04.pod
Log: Example was still in superpositional Perl[5|6]. dconway++ lwall-- Modified: doc/trunk/design/syn/S04.pod ============================================================================== --- doc/trunk/design/syn/S04.pod (original) +++ doc/trunk/design/syn/S04.pod Sat Feb 25 02:30:24 2006 @@ -210,9 +210,10 @@ The list is evaluated lazily by default, so instead of using a C<while> to read a file a line at a time as you would in Perl 5: - while my $line = <$*IN> {...} + while (my $line = <STDIN>) {...} -in Perl 6 you should use a C<for> instead: +in Perl 6 you should use a C<for> (plus a unary C<=> "iterate the +iterator" operator) instead: for =$*IN -> $line {...}