Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Query anout module loading

by graff (Chancellor)
on Apr 28, 2012 at 18:41 UTC ( #967852=note: print w/replies, xml ) Need Help??


in reply to Query anout module loading

The plan looks okay to me too, except I wonder why you aren't using the "md5" (or "md5sum") command instead of "cksum". Is comparability of output across systems not an issue in your case?

(If you wanted to know whether files on two different systems had identical content, you'd want the md5 sum from both files; having cksum output from one and md5 output from the other isn't informative in any way.)

Replies are listed 'Best First'.
Re^2: Query anout module loading
by firearm12 (Novice) on Apr 28, 2012 at 19:34 UTC
    No, actually md5sum command is not available on all the hosts, so I cant use that. I am comparing a file's checksum against a previously stored list (that contains both md5sum and cksum of the file). So, using md5sum for those servers that have it and cksum for those who dont have md5.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://967852]
help
Chatterbox?
[Corion]: TCLion: I'm not aware of a better way than manually building the hash, as all strptime incarnations I know have nasty edge cases
[davido]: And remember; time is hard. :) As soon as you think, I've got this, you'll discover that time is harder than that. :)
[1nickt]: TCLion are you parsing the dates with DateTime or another tool?
[1nickt]: I note DateTime::Format:: Flexible, announced immediately below this box in the CPAN feed

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2017-03-23 14:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (287 votes). Check out past polls.