in reply to Re: Probably an easy map question
in thread Probably an easy map question
The "$" is useless.
In the spirit of the OP, here's a (shorter!) variation that uses map:
my %h = do { local @ARGV = $file; map /^(.*?) = (.*)/, <> };
One should probably localize $^I when localizing @ARGV.
|
|---|