Hi Perl Monks,
I have the below two hash of array of hashes.I need to compare these two array of hashes,each and every field needs to be compared.I cant use diff, I need to do it without using any inbuilt functions.
Please help me out with this as I am really new to Perl.
Thanks a lot in advance.
HASH OF ARRAY OF HASHES 1:
{
'details' => [
{
'name' => 'bbbb',
'time' => 1234,
'place' => AB
},
{
'name' => 'aaaa',
'time' => 5678,
'place' => CD
},
{
'name' => 'aaaa',
'time' => '91011',
'place' => EF
},
{
'name' => 'aaaa',
'time' => '121314',
'place' => GH
},
{
'time' => '151617',
'name' => 'cccc',
'place' => IJ
},
]
};
HASH OF ARRAY OF HASHES 2:
{
'details' => [
{
'name' => 'dddd',
'time' => 1234,
'place' => AB
},
{
'name' => 'eeee',
'time' => 5678,
'place' => CD
},
{
'name' => 'eeee',
'time' => '91011',
'place' => EF
},
{
'name' => 'eeee',
'time' => '121314',
'place' => GH
},
{
'time' => '151617',
'name' => 'cccc',
'place' => IJ
},
]
};
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.