$ perl -MO=Deparse -e 'while($file = readdir(D)) { print $file; }' while (defined($file = readdir D)) { print $file; } -e syntax OK
This is explained in more detail at A most obscure bug.
--
John.
In reply to Re: readdir and while - magic?
by jmcnamara
in thread readdir and while - magic?
by bjelli
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |