[EMAIL PROTECTED] wrote: > > On Wed, Aug 27, 2003 at 11:18:26AM +0530, T.S.Ravi Shankar wrote: > > > > open(STATUS,">> status.txt"); > > for ($i=0; $i<=98985;$i++) { > > system ("process"); > > if (($i%10)==0) > > { print STATUS "\n\n **** $i iterations over !!*****\n\n"; } > > } > > close(STATUS); > > I'm not an expert, but shouldn't you add a space between % and 10?
No, a space is not necessary there. In fact, if you use the print function instead of the print operator, you can remove all the non-quoted space characters. open(STATUS,">>status.txt");for($i=0;$i<=98985;$i++){system("process");if(($i%10)==0){print(STATUS"\n\n **** $i iterations over !!*****\n\n")}}close(STATUS); However that is not very readable or maintainable. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]