Math::Logic v.1.19


Perl's built-in logical operators, and, or, xor and not support 2-value logic. This means that they always produce a result which is either true or false. In fact perl sometimes returns 0 and sometimes returns undef for false depending on the operator and the order of the arguments. For "true" Perl generally returns the first value that evaluated to true which turns out to be extremely useful in practice. Given the choice Perl's built-in logical operators are to be preferred -- but when you really want pure 2-degree logic or 3-degree logic or multi-degree logic they are available through this module.The only 2-degree logic values are 1 (TRUE) and 0 (FALSE).The only 3-degree logic values are 1 (TRUE), 0 (FALSE) and -1 (UNDEF). Note that UNDEF is -1 not undef!The only multi-degree logic values are 0 (FALSE)..-degree -- the value of TRUE is equal to the degree, usually 100.The -degree is the maximum value (except for 2 and 3-degree logic); i.e. logic of n-degree is n+1-value logic, e.g. 100-degree logic has 101 values, 0..100.Although some useful constants may be exported, this is an object module and the results of logical comparisons are Math::Logic objects.

Perl's built-in logical operators, and, or, ...

  • Freeware
  • 10 Kb
  • 232
  • Free

Review Math::Logic

  • captcha

Other software of Mark Summerfield

New Miscellaneous software
  • ModCom  v.10.9.1Free Windows software for Data Acquisition & Control, HMI / SCADA, Industrial Automation, Process Control, and Data Logging. Read data from sensors, turn on/off electrical equipment, output control voltages, count or time events, move stepper motors.
  • Bersoft HTML Print  v.9.09This programmer utility for printing HTML pages and images in an invisible way can be called from your application, passing either the file to print or a file list as a parameter.
  • Metamill  v.8.2.2022Metamill is a professional UML modeling tool. Supports UML 2.4 standard. All 14 UML diagrams supported. Round-trip engineering for Python, ADA, Java, C, C++, C# and VB.Net. RTF and HTML document generation. Fast and easy to use. ...
  • RunETAC  v.2-0.1-6-enaThe ETAC programming language is a general purpose dictionary and stack based interpreted script programming language fully capable of traditional high-level block structured language style syntax.
  • XML::Writer::Nest  v.1.111990XML::Writer::Nest - dataElement() for when you need to embed elements, not data ...
  • Text::MacroScript  v.1.38Define macros, scripts and variables in macro files or directly in text files.