in reply to MD5 Peculiarities

You are calculating the MD5 of a reference, not the data.

my $foo = $$data; # ^ # |

Therefore, if you run a simple script several times in a row, the result is likely to be the same. In a complicate one, the reference to that variable may more easily change. Thus, the varying results you get.

Replies are listed 'Best First'.
Re: Re: MD5 Peculiarities
by skazat (Chaplain) on Jun 22, 2003 at 08:03 UTC

    I'm passing a reference to the method (although this isn't aparent), doublin' up the '$" dereferences the variable, no?

    Anyways, in the actual MD5 method call, I have "foobarbaz".

    Anyways again, I switch to the non OO way of doings things in Digest::MD5 and everything works out OK.

    File under, "Why did this stupid thing waste my saturday night?"

     

    -justin simoni
    !skazat!