Not quite so simple. Better would be:
my %hash2 = map {/^ "xxxx-(\d+):xxxxxx([^,]+),.+"$/ ? ($1 => $2) : ( +)} @data;
In reply to Re^2: passing @ to sub and getting back hash
by GrandFather
in thread passing @ to sub and getting back hash
by convenientstore
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |