in reply to Re: shift doesn't DWIM
in thread shift doesn't DWIM
orgiven shift { do something with $_; }
And in particular, while on a filehandle turns into a (lazy) for:for @ARGS { do something with $_; }
In general, the only dwimming on void context in the standard Perl 6 dialect will be deciding whether to turn an unthrown exception (aka undef) into a thrown exception because someone forgot to check the return value.for =$fh { do something with $_; }
|
|---|