in reply to Auto-filling an array

nimdokk,
my @list = ('N/A') x 14;

Cheers - L~R

Replies are listed 'Best First'.
Re^2: Auto-filling an array
by nimdokk (Vicar) on Mar 28, 2005 at 18:33 UTC
    Thanks, that ought to do the trick quite nicely. I'm sure there's a much nicer way to do all of this, but I've got it working, don't want to mess around with it too much (unless I find myself bored at some point :-)
      nimdokk,
      See Multiplicative Operators in perldoc perlop for more details. Having code that works is important, but you might want to check out Value of "RE"-coding for the newbie to see why there can be value in messing around as you put it.

      Cheers - L~R