I have two data structures with a mix of hashes and arrays. How can I compare two data structures and return their differences, something like perl Test :: Harness, but I don't want to run unit test .... or is there a way to drag Test :: Harness without actually running unit test?
Perl Monks says that Test :: Deep , Data :: Compare and Data :: Match are your friends. These packages do not seem to aim at creating detailed differences, but you can hack a callback to track the exact differences.
Test:: Deep:: NoTest ( Test:: Deep) , , Test:: script (eq_deeply, cmp_deeply ..). , deep_diag(), , .
Data:: Compare - , (, cmp ), ( ) .
cmp
, , deep_diag(), Data:: Compare , .
Source: https://habr.com/ru/post/1771232/More articles:How to "insert" a value WITHOUT using boxing support in a programming language? - c #Late binding of COM-> NET call with argument (s) of enum value - c ++Priority Queue in Java - javaWidget does not appear after rebooting the phone - androidIterate recursively over object properties - reflectionConverting date and time to sql server - sqlAnnoying Bump sound with keyboard events in a subclass of NSOpenGLView - cocoaSave widget state - androidhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1771236/adding-audit-columns-to-a-fluent-nhibernate-many-to-many-junction-table&usg=ALkJrhhzLwyEplLQ_a0InlOS3EZJ2F9_3AF # - Smooth list / range - f #All Articles