edimusrex has asked for the wisdom of the Perl Monks concerning the following question:
So if any one has used this module before, your help is greatly appreciated#!/usr/bin/perl use warnings; use strict; use Array::Diff; my @old = ( 'a', 'b', 'c' ); my @new = ( 'b', 'c', 'd' ); my $diff = Array::Diff->diff( \@old, \@new ); my $cnt = $diff->count; my @add = $diff->added; my @del = $diff->deleted; print "$cnt\n@add\n@del\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using Array::Diff
by toolic (Bishop) on Dec 02, 2014 at 22:06 UTC | |
by edimusrex (Monk) on Dec 02, 2014 at 22:08 UTC | |
|
Re: Using Array::Diff
by Perlbotics (Archbishop) on Dec 02, 2014 at 22:08 UTC | |
|
Re: Using Array::Diff
by james28909 (Deacon) on Dec 03, 2014 at 00:47 UTC | |
by Laurent_R (Canon) on Dec 03, 2014 at 07:48 UTC | |
by james28909 (Deacon) on Dec 03, 2014 at 08:11 UTC | |
|
Re: Using Array::Diff (purpose?)
by tye (Sage) on Dec 03, 2014 at 07:52 UTC | |
by edimusrex (Monk) on Dec 15, 2014 at 19:59 UTC | |
by tye (Sage) on Dec 15, 2014 at 21:36 UTC |