Help for this page

Select Code to Download


  1. or download this
    for my $ref (sort {substr($a,1) <=> substr($b,1)} grep {substr($_,0,1)
    + eq 'A'} @array) {
        #whatever with $ref
    }
    
  2. or download this
    for my $ref (sort grep {substr($_,0,1) eq 'A'} @array) {
        #whatever with $ref
    }
    
  3. or download this
    for my $ref (sort grep /^A/, @array) {
        #whatever with $ref
    }