Don't forget the parens around the 1 - if they're not there, you'll end up with an array containing one element: 100 1s concatenated together.my @arr = (1)x100;
In reply to Re: Filling an array
by robsv
in thread Filling an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |