in reply to split line and populate hash shortcut ?

Another possible solution, sticking with split but using map:

my %config = map { chomp; /^#/ ? () : split /=/, $_, 2 } <IN>;