Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    foreach (@newarr){
    print "$_\n";
    }
    
  2. or download this
    $hold=@arr;
    foreach (0...$hold){
      push(@newarr, splice(@arr,int(rand(@arr)),1));
    }