On Sun, Sep 29, 2002 at 09:31:46PM -0000, Smylers wrote:

> Consider this Perl 5:
> 
>   while (<>)
>   {
>     # ...
>     foreach my $fruit (qw<apple banana cherry>)
>     {
>       # ...
>     }
>   }
> 
> Inside the inner loop C<$_> still holds the current line.  In the
> equivalent Perl 6 syntax, insider the inner loop C<$_> will be an alias
> of C<$fruit> and there wouldn't be any way of getting the current line.

Well, there's always $OUTER::_ and $OUTER::OUTER::_ etc if you _really_
need them.

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

Reply via email to