Help for this page

Select Code to Download


  1. or download this
           map( [$_, (split('|', $_))[-1] ],
    
  2. or download this
    $str =
      join("\n",
    ...
        map { [$_, ( split /\|/, $_ )[0,1] ] }
        split/\n/, $str
      );