No such thing as a small change | |
PerlMonks |
Re: Filling an arrayby robsv (Curate) |
on Sep 06, 2001 at 19:57 UTC ( [id://110605]=note: print w/replies, xml ) | Need Help?? |
Use the x (repetition) operator:
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. - robsv
In Section
Seekers of Perl Wisdom
|
|