It is not quite clear how you want your final structure to look like. Here is something untested:
my %h = map { $_ => [ `zcat $_ | sed 's/[<> ]//g'` ] } glob("*.gz"); chomp @$_ for values %h;
In reply to Re: add/replace map result into existing hash
by hdb
in thread add/replace map result into existing hash
by fredo2906
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |