That is much easier to read, but it actually does something different. I think we'd rather have:
my @a2 = map { /(.*),(.*)/; { x => $1, y => $2 } } @a1;
Thanks!
In reply to Re^3: Sorting array with multiple values per keys
by kyle
in thread Sorting array with multiple values per keys
by cowgirl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |