Language::INTERCAL::Backend::PerlText(3pm)

Language::INTERCAL::Backend::PerlText3pm

A program generated by ' . $intercal . '

Usage

' . $prog_name . ' [options] files...\n";

    use Language::INTERCAL;
    my $program = compile Language::INTERCAL 'program text';
    $program->backend('PerlText', 'fun.pl');
    system 'perl', 'fun.pl';

Overview

This is just a description of the command-line options, as the compiler has no way to figure out what the program does (can you figure out what an INTERCAL program does just by looking at it?). The programmer can change this paragraph if this is a problem.

-A

Produce output in ASCII (default).

-B

Produce output in Baudot.

-E

Produce output in EBCDIC.

-a

Accept input in ASCII.

-b

Accept input in Baudot.

-e

Accept input in EBCDIC (default).

-o name

Internally redirects the standard output to the named file.

Overview

Language::INTERCAL::Backend::PerlText contains a back end for Language::INTERCAL which creates a Perl script.

The back end is normally invoked using the method backend of package Language::INTERCAL, with the string 'PerlText' as first argument and the name of the file to be created as second argument.

The program produced by this back end will contain the same Perl code as internally generated by the 'Perl' back end (see Language::INTERCAL::Backend::Perl), with a wrapper to parse some command-line options and fiddle with the input and output alphabet. See the POD in the generated file for details.

Releases

3 releases since Debian 2.2 (Potato); the text changed 2 times.

  1. 2.2
  2. 3.0
  3. 3.1

From clc-intercal 0.05-7 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.