Re: Perl loop

2007-12-15 Thread John W . Krahn
On Friday 14 December 2007 19:01, jeff pang wrote: > > --- "John W.Krahn" <[EMAIL PROTECTED]> wrote: > > > > No, you would have to do: > > > > if ( !system($touchcmd) && !system($chkstat) ) > > I have thought that, if the unix command's author doesn't return a 0 > from the code, how will we get the

Re: Perl loop

2007-12-15 Thread Chas. Owens
On Dec 15, 2007 2:50 AM, John W. Krahn <[EMAIL PROTECTED]> wrote: snip > > $ cat test.c > > #include > > > > main () { > > In C the main function returns an int so that is not compliant with the > C standard[3]. It should be: > > int main ( void ) { > > > printf("hello world"); snip That dep

Re: Perl loop

2007-12-15 Thread John W . Krahn
On Saturday 15 December 2007 06:17, Chas. Owens wrote: > > On Dec 15, 2007 2:50 AM, John W. Krahn <[EMAIL PROTECTED]> wrote: > > > > $ cat test.c > > > #include > > > > > > main () { > > > > In C the main function returns an int so that is not compliant with > > the C standard[3]. It should be: >

Re: Perl loop

2007-12-15 Thread Chas. Owens
On Dec 15, 2007 12:22 PM, John W. Krahn <[EMAIL PROTECTED]> wrote: snip > > That depends on the version of C you are using. Given the lack of > > other syntax in this short program I cannot tell if it is K&R C, ANSI > > C, or C99. If he is using K&R C, that is a perfectly fine main > > definition