in reply to Digest::MD5 variation problem?

Have you inspected the value of $_[0] for the different calls?

It's generally not advisable to implement "OO-and-functional" calling styles. In the case of User::Encrypt(), what user does the function operate on?

Replies are listed 'Best First'.
Re^2: Digest::MD5 variation problem?
by AlexTape (Monk) on Aug 22, 2013 at 14:32 UTC
    IMHO User::Encrypt is static. And $User->ENCRYPT is OO. uuuuhh i got it..
    $_[0] is $User if i do $User->ENCRYPT('test')
    $_[0] is 'test' if i do User::ENCRYPT('test')
    -.- %&#§!! ;)
    $perlig =~ s/pec/cep/g if 'errors expected';