Beefy Boxes and Bandwidth Generously Provided by pair Networks BBQ
more useful options
 
PerlMonks  

Re^3: Handling Hash Comparison

by Errto (Vicar)
on Jul 23, 2005 at 00:16 UTC ( [id://477420]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re^2: Handling Hash Comparison
in thread Handling Hash Comparison

Ok. I posted an update above - basically you can use $File::Find::dir instead of getcwd so that the relative path instead of the absolute path becomes the key. But now I'm unclear - I understand that if two files in corresponding relative paths have matching MD5 sums you want to do something, but I don't understand what that is. Right now what would happen is that you copy the file onto itself.

Replies are listed 'Best First'.
Re^4: Handling Hash Comparison
by omega_monk (Scribe) on Jul 23, 2005 at 00:21 UTC
    exactly, and that is my issue, that I am not sure how I need to change the code to get the appropriate arguments to 'cp'.
      So, I'm still not clear...what do you want it to do? In the OP you only said you wanted to compare MD5 sums of corresponding files. I don't see how copying fits into it.
        I am trying to synchronize the files recursively in the 2 dirs, so that everything in the source is checked in the destination, and updated if necessary, using md5's to check the files.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://477420]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.