.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "PERLCONSOLE 1p" .TH PERLCONSOLE 1p "2021-01-03" "perl v5.32.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" perlconsole \- light program that lets you evaluate Perl code interactively. .SH "COPYRIGHT" .IX Header "COPYRIGHT" Perl Console is Copyright (C) 2007 by Alexis Sukrieh .SH "DESCRIPTION" .IX Header "DESCRIPTION" Perl Console is a small program that implements a Read-eval-print loop: it lets you evaluate Perl code interactively. .PP It uses Readline to grab input, and provides completion with all the namespaces loaded during your session. It allows you to load a module in your session and test a function exported by it. .SH "COMMANDS" .IX Header "COMMANDS" It's possible to interact with the console with internal commands. The following commands are supported in this version: .IP "\fB:help\fR display the interactive help screen" 4 .IX Item ":help display the interactive help screen" .PD 0 .IP "\fB:quit\fR quit the console" 4 .IX Item ":quit quit the console" .IP "\fB:set\fR set a preference (see \s-1PREFERENCES\s0)." 4 .IX Item ":set set a preference (see PREFERENCES)." .PD .SH "RCFILE" .IX Header "RCFILE" PerlConsole will look for a rcfile located in your home directory called: ~/.perlconsolerc .PP Every line in that file will be evaluated as if they were issued in the console. You can then load there your favorite modules, or even define your preferences. .PP Example of a valid ~/.perlconsolerc .PP .Vb 2 \& :set output = dumper \& use Date::Calc; .Ve .SH "PREFERENCES" .IX Header "PREFERENCES" Preferences can be set with the \fB:set\fR command. The following preferences are supported in this version: .IP "\fBoutput\fR changes the output of evaluated code" 4 .IX Item "output changes the output of evaluated code" .PP For details about commands, ype :help within the console. .SH "AUTHOR" .IX Header "AUTHOR" Perl Console was writen by Alexis Sukrieh .