http://qs321.pair.com?node_id=159725


in reply to Re: Re: File::Dependencies - a new module looking for a good name (and more discussion)
in thread File::Dependencies - a new module looking for a good name (and more discussion)

Storing the file signatures should be easy to add, as I will most likely add a stringification routine to the File::Signature class; retrieving the signatures from a file would then mean parsing the file back in - something which would get nasty with weird filenames - here, either a small DBMS or a tied DB would be necessary to store the data, not nice, but feasible.

Getting the difference between two signatures does not always have a meaning, for example the difference between two MD5 checksums. I could add the method to always store the timestamps, but timestamps are not always something you want to rely on - I'm thinking about NFS mounts with jumping clock times. A method to tell the time since the last update to the file-database is a responsibility of the main program and not of the module.

perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider ($c = $d->accept())->get_request(); $c->send_response( new #in the HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web