Help for this page

Select Code to Download


  1. or download this
      my $array = [];
      @{$array} = ($x) x $n;
      return $array;
    
  2. or download this
      my @array = ($x) x $n;
      return \@array;
    
  3. or download this
      my $array = [ ($x) x $n ];
      return $array;
    
  4. or download this
      return [ ($x) x $n ];