in reply to Re: Hash Problemin thread Hash Problem
I always liked this syntax better for stuff like this.
%h = map { chomp $_; split( ',', $_, 2 ) } <DATA>; # or %h = map { /^([^,]+)\s*,\s*([^\n\r,]+)/ } <DATA>; [download]
Wonko