You guys had $i < $#names and $i <= @names. :-)for (my $i = 0; $i <= $#names; $i++) { ... } # or for (my $i = 0; $i < @names; $i++) { ... }
In reply to Re^3: Little annoying mistakes ... of others
by dragonchild
in thread Little annoying mistakes ... of others
by szabgab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |