B
Bill H
Is there a "perl" way of loading a file directly into a hash instead
of using something like this quick example:
open(FILE,"test.txt");
while(<FILE>)
{
$line = $_;
chop $line;
@dbf = split(/\t/,$line);
$MYHASH{$dbf[0]} = $dbf[1];
}
close(FILE);
where the text file contains entries like this:
NAME0\tsome value
NAME1\tanother value
etc... ?
Bill H
of using something like this quick example:
open(FILE,"test.txt");
while(<FILE>)
{
$line = $_;
chop $line;
@dbf = split(/\t/,$line);
$MYHASH{$dbf[0]} = $dbf[1];
}
close(FILE);
where the text file contains entries like this:
NAME0\tsome value
NAME1\tanother value
etc... ?
Bill H