Help for this page
my @records; $/ = "\n["; while (<>) { ... $h =~ s/\]$//; push @records, { '[]' => $h, map { split /\s*=\s*/, $_, 2 } @l }; }