pirl(1p)

pirl1p

A read-eval-print loop in perl (see shell::perl)

Usage

pirl

pirl --noornaments

pirl --version

pirl -v

pirl -I dir

pirl -Idir1 -Idir2

Example session

    $ pirl
    Welcome to the Perl shell. Type ':help' for more information
    pirl @> 1+1
    2
    pirl @> use YAML qw(Load Dump);
    ()
    pirl @> $data = Load("--- { a: 1, b: [ 1, 2, 3] }\n");
    { a => 1, b => [1, 2, 3] }
    pirl @> $var = 'a 1 2 3'; $var =~ /(\w+) (\d+) (\d+)/
    ("a", 1, 2)
    pirl @> :q

Overview

This script is the command-line interface to "Shell::Perl" which does it all.

By now, read the fine details at "Shell::Perl" documentation.

Options

    -I dir - add the given directory to @INC
    --ornaments - turn on terminal ornaments (default)
    --noornaments - turn off terminal organments
    --version, -v - prints version info and exits with 0

Releases

7 releases since Debian 7 (Wheezy); the text changed 3 times.

  1. 7
  2. 8
  3. 9–11
  4. 12–13

From libshell-perl-perl 0.0026-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.