in reply to Re^3: How to Map a scalar to a key that is an array?
in thread How to Map a scalar to a key that is an array?
my %data = do { local $/ = ''; map { chomp; split /\n/, $_, 2 } <> };
my %data = map /^(.*?)\n(.*)\n/s, do { local $/ = ''; <> };
|
---|
In Section
Seekers of Perl Wisdom