1 while print $fh "foo";
is different from
print $fh "foo" while 1;
The first one will stop when the print eventually fills up the device that its writing to, the second one wont.
In reply to Re: Difference between 'print while' and 'while print'
by demerphq
in thread Difference between 'print while' and 'while print'
by lamp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |