in reply to Using Data::Compare recursively to better identity differences between hashes
There is also Data::Difference that compares hash & hash references, and shows where a difference exist.
BTW, Data::Compare does have the facility to compare array references (see "ignore_hash_keys" option).
Some time ago I wrote some code to dump the two data structures (via Data::Dumper) to two separate files (File::Temp) followed by file-difference (possibly Algorithm::Diff or Text::Diff; OTOH might have been a call to system diff(1)).
For visual difference, see Text::ParagraphDiff (never used myself). Also, GNU diff (version: diff (GNU diffutils) 2.8.1) has the facility to show word differences, optionally in color.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using Data::Compare recursively to better identity differences between hashes
by Anonymous Monk on Oct 18, 2014 at 18:25 UTC | |
by perlron (Pilgrim) on Oct 22, 2014 at 09:04 UTC |