adrive has asked for the wisdom of the Perl Monks concerning the following question:

i installed boolean::all package few months back with perl package manager, but recently another one of my friend's pc needs that module and we can't seem to locate it anymore.

the only boolean module perl package manager would return or find is Math-BooleanEval.

we're using PPM 4.01 and ActivePerl version 5.8.8.822.

meanwhile, i downloaded the source code from http://search.cpan.org/~ingy/boolean-0.11/lib/boolean.pm but don't really know how to install it..can anyone help me out? i don't have "dmake"

Replies are listed 'Best First'.
Re: Boolean::all gone?
by ikegami (Patriarch) on Mar 07, 2008 at 05:22 UTC

    The module to which you linked isn't boolean::all, just boolean.

    But if that's really the one you want, you can simply put the .pm in your site/lib directory, seeing as it's a simple pure Perl module.

    Running the following will update your local ActivePerl documentation to include this module.

    perl -M"ActivePerl::DocTools" -e"ActivePerl::DocTools::UpdateHTML(); A +ctivePerl::DocTools::WriteTOC();"

    Update: I looked too hastily. The module is NOT a pure Perl module.

Re: Boolean::all gone?
by Anonymous Monk on Mar 07, 2008 at 04:36 UTC
      well according to the link http://search.cpan.org/~ingy/boolean-0.11/lib/boolean.pm#AUTHOR

      Ingy döt Net <ingy@cpan.org>

      i was under the impression that this was the solution to bring a proper boolean technique to perl, but now that it's gone.... no one's using this?

        Given the following documented "Bug":

        Currently, assigning a boolean value to a variable causes the booleanity to be lost. This code dies:
        $x = true; isBoolean($x) || isTrue($x) or die;

        I'm not terribly surprised that such a fundamentally broken module isn't widely used. I've also never found the supposed lack of a boolean data type in Perl to be a problem. I also find the way that isTrue() and isFalse() are defined to look like really bad ideas (because they make the existance of such a fundamental bug not surprising).

        - tye        

        I had never heard of it. Although I tend to avoid Ingy's modules. Inline::C is great, but some of his other modules do weird things that sometimes reach out and bite you.

        I don't think true Boolean types are high up on anyone's list of things Perl needs. Most people seem to get by with truth. 0 (zero) and the empty string ('') are false, everything else is true. That seems to have worked pretty well for the past 20 years :)

        • another intruder with the mooring in the heart of the Perl

        "boolean" is not "Boolean::all"