IPERL(1)

NAME
iperl - perl with intercal functions

SYNOPSIS
iperl [options] filename args

DESCRIPTION
Iperl is an extension of perl which retains all its original functionality, but adds the ability to use Intercal operators. The new operators are in the form of functions and so are called using the do or & syntax.

Unary Operators
There are three unary operators, each of which is available in 16-bit and 32-bit form. The operators are and16, or16, xor16, and32, or32, and xor32. These operators perform their respective logical operations on all pairs of adjacent bits, the result from the first and last bits going into the first bit of the result. The effect is that of rotating the operand one place to the right and ANDing, ORing, or XORing with its initial value.

Binary Operators
There are two binary operators, mingle and select. The mingle operator takes two 16-bit values and produces a 32-bit result by alternating the bits of the operands The select operator takes from the first operand whichever bits correspond to 1's in the second operand, and packs these bits at the right in the result.

EXAMPLES
See the file op.ical for examples.

SEE ALSO
Woods, Donald R. and Lyon, James M., The Intercal Programming Language Reference Manual, 1973. Wall, Larry, and Schwartz, Randall, Programming Perl, 1990. Any competent phrenologist, if you're thinking of using this!

AUTHOR
It wasn't me, honest!