[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: [ANN] fox-tool - interactive gui builder for fxruby

Austin Ziegler

10/8/2003 2:59:00 PM

On Tue, 7 Oct 2003 15:24:17 +0900, eg wrote:
> Austin Ziegler wrote:
>> ruby -e 'Digest::MD5.new(File.read("<filename>")).hexdigest'
>> Replace <filename> as appropriate.
> A newbie question a bit off topic, but when I do this on Windows XP
> (using Ruby 1.80-10) I get the following error message;
>
> -e:1: uninitialized constant Digest (NameError)

Uh, no. This is because I typed the line wrong:

ruby -r digest/md5 -e 'puts Digest::MD5.new("Hello").hexdigest'
8b1a9953c4611296a827abf8c47804d7

-austin
--
austin ziegler * austin@halostatue.ca * Toronto, ON, Canada
software designer * pragmatic programmer * 2003.10.07
* 11.28.24