Beth, That may all work but i need to modify my program to test it. Because I don't understand some of it the modification is going to be hard. Just a few questions: what is the line "node:" for? Is that where the "next node" directs? How does it test if something exists in $unique{$k} when there is nothing in there yet? Basically the whole for loop has me confused. I've actually started with a prior hash that has all the structure listed in the keys and the value as deleted when compared with the current hash which has keys as the structure but the values as created if when compared to prior it is a new structure. I fear my whole program is excessive long-winded babble. I've seen that i can use a library ChangeNotify to give live updates. But this script is only run every day or so to keep track of accidental changes. Any other ideas?

# FIND CURRENT DIRECTORY STRUCTURE AND PRINT TO "CATALOG_CURRENT.TXT" sub myList { if ( -d ) { print CURRENT "$File::Find::name\n"; } } # GIVE "DELETED" VALUE TO KEYS IN "PRIOR" HASH THAT NO LONGER EXIST sub MarkNotExist { foreach $node (keys(%prior)) { ($prior{$node} = "deleted"), (++$change_count) if !exists $current{ +$node}; } } # GIVE "CREATED" VALUE TO KEYS IN "CURRENT" HASH THAT NOW EXIST sub MarkNewExist { foreach $node (keys(%current)) { ($current{$node} = "created"), (++$change_count) if !exists $prior{ +$node}; } }
Thanks.

In reply to Re^2: Comparing strings to reduce excess results by grub_
in thread Comparing strings to reduce excess results by grub_

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.