On Tue, Nov 30, 2004 at 03:03:38PM -0800, Jon Ericson wrote:
: Larry Wall <[EMAIL PROTECTED]> writes:
: 
: > The p5-to-p6 translator will turn any
: >
: >     while (<handle>) {...}
: >
: > into
: >
: >     for @$handle {...}
: 
: Including:
: 
:   while(<>) {...}
: 
: to
: 
:   for @$ {...}
: 
: ?

You left out the most important phrase:

    "or whatever we decide is the correctest idiom."

So if, as has been pointed out, @$handle is too much role shear, then we
probably go with something like

    for *$handle {...}

in which case, if there's no handle, it seems to degrade to

    for * {...}

which seems amazingly something or other.

Larry

Reply via email to