Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: how to push multiples row of values into hash and do comparison

by thanos1983 (Parson)
on Oct 18, 2018 at 08:40 UTC ( [id://1224218]=note: print w/replies, xml ) Need Help??


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 ! :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1224218]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-25 06:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found