perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dean Powers" <deanpow...@priceobjects.com>
Subject Apache::SessionX Installation
Date Fri, 06 Sep 2002 00:01:12 GMT
I'm trying to install SessionX from CPAN. It fails, of course, and now I'm trying to modify
the
MD5.pm file in per the following patch from May 26th.
Question. Exactly what part of this patch do I put in the MD5.pm file?
What is @@ -26,7 +26,7 @@? Why is there a minus sign in front of "use MD5".

Why can't this get added to the CPAN so us Newbies don't have to do go in and patch files?

I've added the part from "use strict;  to the last "}" bracket but it doesn't work.

Thanks for anyone's help. I really need to install SessionX.


--- /tmp/MD5.pm Sun May 12 22:13:34 2002
> +++ /usr/lib/perl5/site_perl/5.6.0/Apache/SessionX/Generate/MD5.pm
> Sun May 12 22:12:57 2002
> @@ -12,7 +12,7 @@
>
>  use strict;
>  use vars qw($VERSION);
> -use MD5;
> +use Digest::MD5;
>
>  $VERSION = '2.1';
>
> @@ -26,7 +26,7 @@
>      }
>
>      $session->{data}->{_session_id} =
> -        substr(MD5->hexhash(MD5->hexhash($arg || (time(). {}. rand().
$$))), 0, $length);
> +        substr(Digest::MD5::md5_hex(Digest::MD5::md5_hex($arg || (time().
{}. rand(). $$))), 0, $length);
>
>
>  }
>
>



Dean Powers,
PriceObjects



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message