Hello monks,
look below data:I'd like to extract all data in M and D(including M & D), and group them respectively likemy @dd = qw/AA JJ CC M 1 1 3 4 D JJ 1 1 D M 3 3 4 D C M 3 3 3 D P Z/;
before I manually(ugly)treat them by a loop or recursion, I'd like to ask monks if any module treat this problem.my @res1 = qw/M 1 1 3 4 D/; my @res2 = qw/M 3 3 4 D/; my @res3 = qw/M 3 3 3 D/;
Thanks in advance.
In reply to how extract and group data in a array by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |