For example:
output:my @data = (0, 1, 2, 3, 4); # 5 elements foreach my $name (@data) { print "$name\n"; }
I suggest you use warnings, strict and/or post more of your code because the problem isn't in this part of your program.0 1 2 3 4
In reply to Re: foreach in array
by Joost
in thread foreach in array
by loop362
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |