my %words =(); map { chomp; if (/([^:]+):[\s]+(.*)/) { $words{$1} = $2;} }<>; [download]
In reply to Re: Loading a textfile into a hash by Monky Python in thread Loading a textfile into a hash by Anonymous Monk