in reply to Re^2: how can i align two two strings
in thread how can i align two two strings
output :#!/usr/bin/perl use strict; use warnings; use Data::Dumper; use List::Compare; my $a = '1,2,3,6,7,9,1,-7,2,6'; my $b = '7,6,7,9,12,-22,-3'; my @a = split ',', $a; my @b = split ',', $b; my $lc = List::Compare->new( \@a, \@b ); my @intersection = $lc->get_intersection; print Dumper(@intersection);
voilą ;)$VAR1 = '6'; $VAR2 = '7'; $VAR3 = '9';
|
|---|