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}; }
In reply to Re: STUPID STUPID STUPID old me.
by Louis_Wu
in thread STUPID STUPID STUPID old me.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |