in reply to STUPID STUPID STUPID old me.
I don't know where the semicolons should be in the 'foreach' block. This is my attempt at 'clear' formatting and placing semicolons correctly.
I know that you don't always need a semicolon at the last line of a block, but I don't remember the rules. I'm not sure where to go from here. I'm not even sure that I got the formatting right. :)foreach $i (0..$#dir) { if( ($dir[$i] ne "index.html") && ($dir[$i] ne ".") && ($dir[$i] ne "..") && ($dir[$i] ne "cgi-bin") ) {$files = 1}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: STUPID STUPID STUPID old me.
by Anonymous Monk on Oct 28, 2002 at 07:49 UTC | |
|
Re: Re: STUPID STUPID STUPID old me.
by Ananda (Pilgrim) on Oct 28, 2002 at 08:36 UTC | |
by Louis_Wu (Chaplain) on Oct 28, 2002 at 08:41 UTC |