my @stuff; while () { chomp; push @stuff, { map {split /\s*=\s*/} split /,\s*/ } }