Language::INTERCAL::Backend::Perl3pm
Default back end for clc-intercal
Usage
use Language::INTERCAL;
my $program = compile Language::INTERCAL 'program text';
$program->backend('Perl', 'fun');
fun();
Overview
Language::INTERCAL::Backend::Perl contains a back end for Language::INTERCAL which creates a Perl subroutine in the caller's namespace.
To call this back end, use the method backend of package Language::INTERCAL, with the string 'Perl' as first argument and the name of the subroutine to be created as second argument.
To use the resulting subroutine, just call it with up to two parameters, the standard input (a filehandle or CODE reference) and the standard output (ditto). If only one parameter is given, STDOUT is assumed for output. If none is given, STDIN is assumed for input. See the discussion towards the beginning of Language::INTERCAL.
Releases
3 releases since Debian 2.2 (Potato); the text changed 2 times.