in reply to Problem generating a hashtable
i didn't test this... so i can't be sure. it just seems more efficient to only split once. you can also test the values of $one and $two to see if you can find the problem.my %hash = map { my ( $one, $two ) = (split /:/, $_ )[0,2]; $one => $two; } <FILE>;
|
|---|