OxYgEn has asked for the wisdom of the Perl Monks concerning the following question:
@HappyArray=("Perl","Is","Confusing","Would","Someone","Please","Help" +,"Me"); $printnumber=-1; foreach (@HappyArray) { inc $printnumber 1; print "$HappyArray[$printnumber]\n"; } die "Done!\n";
20040225 Edit by BazB: Changed title from 'NEWB NEWB NEWB'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Syntax error with loops
by Roger (Parson) on Feb 25, 2004 at 03:37 UTC | |
|
Re: Syntax error with loops
by pzbagel (Chaplain) on Feb 25, 2004 at 03:36 UTC | |
|
Re: Syntax error with loops
by atcroft (Abbot) on Feb 25, 2004 at 03:16 UTC | |
|
Re: Syntax error with loops
by adamk (Chaplain) on Feb 25, 2004 at 06:00 UTC | |
|
Re: Syntax error with loops
by bart (Canon) on Feb 25, 2004 at 18:32 UTC |