in reply to Compare two arrays

hello this is a Categorized question with a lot of good modules to use. In addition you can also use the function is_deeply from the core module Test::More.

HtH
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: Compare two arrays
by kaushik9918 (Sexton) on Dec 05, 2014 at 09:10 UTC
    Thanks everyone. I could manage to do it by splitting the input elements and using $1, $2 and the generic $_.
    if ($word =~ m/(.*)\<(.*)\>/){ chomp; push @array,$1; } else { push @array,$word; }
    I then proceed and compare the array elements once this formatting is done.