sub repeat { my ($n,$x) = @_; my $array = []; @{$array} = ($x) x $n; return $array; } [download]
In reply to Re: Applying an array to a function by choroba in thread Applying an array to a function by eklerks