I'm trying to write an interface to check SHA1 or SHA256 checksums of a
file.

Initially I was thinking of opening the checksum file and figuring out
based on the contents of that file, is it a SHA1 checksum or a SHA256
checksum.

I realize it would be 'easier' to pass as an argument to the script
which type of checksum we're trying to check.

My question is, which is the better way?

- Let the script figure it out or pass it as an argument on the command
line?
- And why is it better?


Thanks,
Mike

--

 IBM: Insolent Bickering Mal-der-mer
  01:40:01 up 1 day, 21:29,  0 users,  load average: 1.14, 1.07, 1.07

 Linux Registered User #241685  http://counter.li.org


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to