in reply to Array comparison using perl

That's easy enough. Using List::Compare:
#!/usr/bin/perl use strict; use warnings; use List::Compare; my @arr1 = (1, 2, 3, 4, 5, 6, 7, 8, 9); my @arr2 = (1, 4, 5, 9 ,7); my $lc = List::Compare->new(\@arr1, \@arr2); my @arr3 = $lc->get_unique; print "@arr3\n";

Replies are listed 'Best First'.
Re^2: Array comparison using perl
by ajguitarmaniac (Sexton) on Dec 21, 2010 at 12:03 UTC

    Thanks Khen1950fx!