> >        if ( ($num_to_return) = want 'LIST' ) {
   > >           # do stuff
   > >        }
   > 
   > And more correct as I would assume that
   > 
   >   () = some_func();
   > 
   > $num_to_return would be zero, but the assignment would cause the
   > if() to be true.

A scalar context C<want> would also need to DWIM, presumably by returning
"0, but true" in that (unusual) situation. 

I'll add it explicitly to the RFC.

Thanks, Graham,

Damian

Reply via email to