It returns 123.#!/usr/bin/perl use strict; use warnings; use Set::Intersection; my @arr1 = qw/0 1 2 3 4 5 6 7 8 9/; my @arr2 = qw/1 2 3 4 6 8 10 12 14/; my @arr3 = qw/1 2 3 5 7 9 11 13 15/; my @intersection = get_intersection(\@arr1, \@arr2, \@arr3); print reverse (@intersection), "\n";
In reply to Re: Array comparison for 3 arrays
by Khen1950fx
in thread Array comparison for 3 arrays
by terrylau
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |