Thom Boyer [mailto:[EMAIL PROTECTED]] wrote: > sub while (bool $test, &body); > sub while (&test, &body); > > But neither of these really works. > > The first would imply that the test is evaluated only once > (and that once is > before 'sub while' is even called). That'd be useless.
It seems to me that this can be thought of as analagous, in a strange kind
of way, to hyper-operator things. Thus:
sub while (bool $^test, &body)
{
return unless $^test;
&body;
redo;
}
Dave.
