plexus.pl
.
&error($status, $msg)
Where $status is defined in the config file in %code.
$msg is an arbitrary message to be included in the output.
&debug places the $msg in
Loads the data pointed to by $image{'filename'} into
$image{'bits'} for use by
Returns the bit at $x,$y in %image. Must have been
already been loaded by
Loads the image pointed to by $file and returns the pixel
value at $x,$y. This probably shouldn't be
used, you should pre-load using
Iterates over the data stream FH looking for $pat.
On matches (inverted by the &debug
&debug($msg)
/tmp/plexus.debug
if the $debug variable is true (defined in the config file).
It's not very efficient and should only be used for debugging. decode.pl
This outlines the support routines available in decode.pl
.
&loadmask
&loadmask(*image)
&pixel
. The
$image{'width'} and $image{'height'} elements must
be set before the call. The element $image{'scanlen'} is also
returned. &pixel
&pixel(*image, $x, $y)
&loadmask
or equivalent. ®ion
®ion($file, $width, $height, $x, $y)
&loadmask
and
save lots of effort and time.
grep.pl
This outlines the support routines available in grep.pl
.
&grep
&grep($matched, $flags, $pat, *FH)
v
flag) it calls the routine
pointed to by $matched which has access to $_. If
$matched returns true the grep is halted at the current
point in the input stream. The $flags available are:
________________________________________
Tony Sanders