perl Q and

From: alex morris (
Date: Sat 18 Aug 2001 - 06:20:14 UTC

  • Next message: Bjarni R. Einarsson: "Re: perl Q and"

    I was attempting to run the new sanitizer 1.40 on sparc Solaris 8, perl
    5.6.1, the Solaris pkg from sunfreeware. I obtained Base64 and MD5 from
    cpan, make and install them, fix up all the sanitizer stuffs (like
    changing !#/usr/bin/perl to /usr/local/bin/perl in, and and and try to run it.

    I kept dying just piping mail through the sanitizer.

    # ./ /etc/mail/sanitizer.cfg <
    Can't locate object method "new" via package "Digest::MD5" (perhaps you
    forgot to load "Digest::MD5"?) at Anomy/ line 913.

    So, I took a peek at, line 913.

                        my $md5_1 = new Digest::MD5;
                        my $md5_2 = new Digest::MD5; $md5_2->add("Shift!");

    I change to

                        my $md5_1 = new MD5;
                        my $md5_2 = new MD5; $md5_2->add("Shift!");

    Now it works.

    Is my perl install broke, and this hack is required to work around it,
    was it a typo, or just one of the many idiosyncrasies of perl and
    various unix flavors?

    anyway, I am very happy with the sanitizer.



    hosted by