in reply to how to push multiples row of values into hash and do comparison

Hello darkmoon,

Welcome to the Monastery.

Regarding your second question you can use something like that:

#!/usr/bin/perl use strict; use warnings; use Data::Dumper; my %some_data = ( jack => ['999', '111', '222', '333', '333', '444', '555', '777'], foo => [ '111', '222', '333', '444'], ); my %other_data = ( jack => ['999', '111', '222', '333', '333', '444', '555', '777'], foo => ['111', '222', '333', '444'], ); # print Dumper \%other_data; use Test::More tests => 1; is_deeply(\%other_data, \%some_data, 'data structures should be the sa +me'); __END__ $ perl test.pl 1..1 ok 1 - data structures should be the same

Simple and effective. Hope this helps, BR.

Seeking for Perl wisdom...on the process of learning...not there...yet!

Replies are listed 'Best First'.
Re^2: how to push multiples row of values into hash and do comparison
by darkmoon (Novice) on Oct 22, 2018 at 07:37 UTC
    Thank you for your response ! :)