Help for this page

Select Code to Download


  1. or download this
      my @arr = ('A'..'Z');
      my $n = 2 ;
      my $combo = join '', map { $arr[rand @arr] } (1..$n) ;
      print $combo . "\n";
    
  2. or download this
      my @arr = ('A'..'Z');
      my $n = 2 ;
      my $combo = $arr[rand @arr] x $n ;
      print $combo . "\n";
    
  3. or download this
      my @arr = ([]) x $count ;