Help for this page

Select Code to Download


  1. or download this
    @results= map(/^(lean : sigma)/,@arr);
    print "First content=> $_\n" for @results;
    
  2. or download this
    foreach (@arr) {
      if (/^(lean : sigma)/) {
        print "First content=> $1\n";
      }
    }
    
  3. or download this
    @numberlist=('First','Second','Third','Fourth','Fifth'); #and so on as
    + high as the maximal number of matches you expect
    
    ...
    foreach (@results) {
      print $numberlist[$i++]," content=> $_\n";
    }