P.S. shitty parser... =(use Modern::Perl; use Array::Utils qw(array_diff intersect); my @res_of_q = ( [qw(a b c)], [qw(a b d)] ); say join "\n",intersect( @{$res_of_q[0]}, @{$res_of_q[1]} ); say join ',',array_diff( @{$res_of_q[0]}, @{$res_of_q[1]} );
In reply to Re: how to compare the rows in a 2d array
by youlose
in thread how to compare the rows in a 2d array
by sera
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |