hmm.. strange use of for.. is $a initialized somewhere else? $i never changes, and if if ($slog[$i]) returns true it will always return true.. whatever happens to $a, and that's probably not the effect you want.. perhapps a little bit more code might help us help you.
Oh, and you might want to change that for loop into the more perlish for $a ( 2..7 ) { kinda thing.
In reply to Re: for only returning one result
by Chady
in thread for only returning one result
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |