Another possible solution, sticking with split but using map:
my %config = map { chomp; /^#/ ? () : split /=/, $_, 2 } <IN>;
In reply to Re: split line and populate hash shortcut ?
by revdiablo
in thread split line and populate hash shortcut ?
by leocharre
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |