Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
       my ($id,    $desc) = split(/\t/, $rest, 2);
       $hash{$id} = $desc;
    }
    
  2. or download this
    while (<$fh>) {
       my ($id, $desc) = /^[^:]*:([^\t]*)\t(.*)$/;
       $hash{$id} = $desc;
    }