Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    use warnings;
    ...
        }
    }
    say "@rand";
    
  2. or download this
    for (@rand) {
        if ( $rand[0]<0 ) { next; }
        shift @rand;
    }
    
  3. or download this
    for (@rand) {
        if ( $rand[0]<0 ) { next; }
        else { shift @rand; }
    }
    
  4. or download this
    for (@rand) {
        if ( $rand[0]>=0 ) { shift @rand; }
        else { next; }
    }