# my %file1 = map { split '\|', $_ } ; my %file1 = map { chomp && s/\|$//g && split '\|', $_, 2 } ;