Help for this page

Select Code to Download


  1. or download this
    while (<DATA>) # or wherever those lines come from
    {
    ...
      $str =~ s/^\d+,\s*//;
      $hash{$num} = $str;
    }
    
  2. or download this
    while (<DATA>) # or wherever those lines come from
    {
      /^(\d+)\s+\d+,\s*(.*)/ and $hash{$1} = $2;
    }