develooper Front page | perl.perl6.language | Postings from June 2001

Re: Coupla Questions

Thread Previous | Thread Next
From:
David L. Nicol
Date:
June 12, 2001 12:13
Subject:
Re: Coupla Questions
Message ID:
3B266902.26F9923D@kasey.umkc.edu
Damian Conway wrote:
> 
> Graham wrote:
> 
>    > Now I may be wrong here, but I thought I remembered something about
>    >
>    >   .foo being the same as $_.foo
> 
> It's certainly a possibility.
> 
>    > In which case you could do
>    >
>    >    for (%database.$accountnumber) {
>    >
>    >            .interestearned += $interestrate * .balance
>    >
>    >    }
> 
> Larry doesn't favour using C<for> thus, beause it introduces a sly
> list context. That argument convinced me.
> 
> But there might well be another keyword for the same idea and that might tie
> into switch statements too.
> 
> Damian


The data working group settled on %_ for this, as I recall it was
a consensus without objection.



-- 
                                           David Nicol 816.235.1187
                                      Signature closed for repaving


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About