Help for this page

Select Code to Download


  1. or download this
    #Initial code...
    @array = (['EMBL','a','b'],['c','d'],['EMBL','e','f']);
    ...
    $list = join "\n", map { $_->[0] eq "EMBL" ? @{$_}[1,2] : () }  @array
    +;
    
    print "\nSimplified:\n$list";
    
  2. or download this
    map { (grep_condition) ? map_function : () }