Help for this page

Select Code to Download


  1. or download this
    $str = join "\n",    map { $_->[0] }
                       sort {$a->[THIRD_FIELD] cmp $b->[THIRD_FIELD] }
                       map { [$_, split('\|', $_)] } split(/\n/, $str);
    
  2. or download this
    split(/\n/, $str);
    
  3. or download this
    map { [$_, split('\|', $_)] } split(/\n/, $str);
    
  4. or download this
    ( ["abc|123|cde", "abc", 123, "cde"], ["def|222|eee", "def", 222, "eee
    +"])
    
  5. or download this
    sort {$a->[THIRD_FIELD] cmp $b->[THIRD_FIELD] }
    
  6. or download this
    sort {$a->[THIRD_FIELD cmp $b->[THIRD_FIELD] ||
          $a->[FIRST_FIELD cmp $b->[FIRST_FIELD]}
    
  7. or download this
    join "\n",    map { $_->[0] }