Nansh has asked for the wisdom of the Perl Monks concerning the following question:
Hello i need to find the difference between two hash of arrays.
My hash looks like this
'Fruits'=>[ 'Apple', 'Orange', 'Banana', 'Grapes', ], 'Fruits1'=>[ 'Apples', 'Orange', 'pineapple', 'Grapes', ]
I need output like this
'difference'=>[ 'Apples', 'pineapple', ]
I couldnt solve this please help me Thanks in advance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Findidng Difference between two hash of arrays
by Corion (Patriarch) on Apr 04, 2017 at 07:49 UTC | |
|
Re: Findidng Difference between two hash of arrays
by thanos1983 (Parson) on Apr 04, 2017 at 08:11 UTC | |
by Anonymous Monk on Apr 04, 2017 at 18:30 UTC | |
|
Re: Findidng Difference between two hash of arrays
by BillKSmith (Monsignor) on Apr 04, 2017 at 15:16 UTC |