in reply to Need Debug Help
The kind of for loop you're trying to write takes its terms separated by semicolons:
for ( my $i = init(); $i != condition(); $i++ ) {}
What you actually wrote here has commas instead, so it's taking that as a list of three things to loop over.
for ( 1, 2, 3 ) {}
So change those commas to semicolons, and that should help.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Need Debug Help
by naveed010 (Acolyte) on Jan 18, 2008 at 18:11 UTC | |
by olus (Curate) on Jan 18, 2008 at 18:34 UTC |