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

Very good question.

Indeed I use perl for lot of other things. So I want to use perl completely in my environment rather than have one script using perl n another for python.

Also after this am planning to use CGI so perl will help me. Thanks
  • Comment on Re^2: UrlLib and urllib2 python to perl

Replies are listed 'Best First'.
Re^3: UrlLib and urllib2 python to perl
by sidsinha (Acolyte) on Aug 13, 2013 at 03:23 UTC
    ok Web::Magic looks great. is there an equivalent function for hashlib? Couldnt find any
      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

      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