I think that
/^($pattern)/ and push @{$dfs{$1}}, $_;
is readable enough. Maybe even more readable (in a perl way) than my previous solution.
In reply to Re^2: populating a HoA with regexp
by asqwerty
in thread populating a HoA with regexp
by asqwerty
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |