--- "John W. Krahn" <[EMAIL PROTECTED]> wrote:
> [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.

I ran this on my system (HP-UX, perl v5.6.1), changed "process" to "date" and
it ran fine _as-is_.  Could it be hosing on the external command here??!


-JW


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to