i get use of uninitialized value and it prints three lines of zero. I've played a bit more with this putting "our" inside the loop, but that only works if i print @array--not $array[$cnt]. it looks like vars are going out of scope magically. where to look in this install / Win2000 Server setup to fix this? Chrisuse strict; use warnings; my @array = qq(bla bla2 bla3); for ( my $cnt = 0; $cnt<=@array; $cnt++) { print $array[$cnt]; }
In reply to vars going out of scope! by aquarium
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |