in reply to foreach in array
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
|
|---|