Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: UrlLib and urllib2 python to perl

by sidsinha (Acolyte)
on Aug 13, 2013 at 03:23 UTC ( [id://1049205]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1049205]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (None)
    As of 2024-04-25 01:55 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found