in reply to Re^2: UrlLib and urllib2 python to perl
in thread UrlLib and urllib2 python to perl

ok Web::Magic looks great. is there an equivalent function for hashlib? Couldnt find any
  • Comment on Re^3: UrlLib and urllib2 python to perl

Replies are listed 'Best First'.
Re^4: UrlLib and urllib2 python to perl
by snoopy (Curate) on Aug 13, 2013 at 04:19 UTC
    Digest::MD5 should be a suitable replacement here:
    % python -c'import hashlib;print hashlib.md5("blah").hexdigest()' 6f1ed002ab5595859014ebf0951522d9
    % perl -MDigest::MD5 -E'say Digest::MD5::md5_hex("blah")' 6f1ed002ab5595859014ebf0951522d9
Re^4: UrlLib and urllib2 python to perl
by Anonymous Monk on Aug 13, 2013 at 03:45 UTC

    ok Web::Magic looks great. is there an equivalent function for hashlib? Couldnt find any

    I don't know what that is, or what that does, but if you go to MetaCPAN or CPAN and enter the name of the algorithm (or even "hash") you'll find something