PERLCONSOLE(1p)

πŸ“¦
version 0.4 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– NAME πŸ’–

okay bestie, so this is perlconsole β€” a lil light program that lets you evaluate Perl code interactively ✨ it's giving "REPL but make it cute", and honestly? iconic.

this is the manual page for PERLCONSOLE(1p), and yes, section 1p means it's a Perl thing, iykyk 🫢


Perl Console is Copyright (C) 2007 by Alexis Sukrieh β€” periodt, that's the whole thing, credit where credit is due πŸ‘‘


🌸 DESCRIPTION 🌸

okay so real talk: Perl Console is a small program that implements a Read-eval-print loop β€” it lets you evaluate Perl code interactively πŸ’…

It uses Readline to grab input, and it provides completion with all the namespaces loaded during your session. so the way that it just knows what you've loaded?? obsessed 😭

It also lets you load a module in your session and test a function exported by it. load a module, poke at a function, vibe check it, done 🌈


πŸŽ€ COMMANDS πŸŽ€

It's possible to interact with the console with internal commands, bestie. The following commands are supported in this version:

  • :help β€” display the interactive help screen
  • :quit β€” quit the console
  • :set β€” set a preference (see PREFERENCES).

πŸ¦‹ RCFILE πŸ¦‹

PerlConsole will look for a rcfile located in your home directory called: ~/.perlconsolerc 🏠

Every line in that file will be evaluated as if they were issued in the console. so you can then load there your favorite modules, or even define your preferences. set it and forget it, no cap ✨

Example of a valid ~/.perlconsolerc:

:set output = dumper
use Date::Calc;

πŸ’… PREFERENCES πŸ’…

Preferences can be set with the :set command. The following preferences are supported in this version:

  • output β€” changes the output of evaluated code

For details about commands, type :help <command> within the console. yes, literally inside the console, she'll tell you everything 🫢


πŸ‘‘ AUTHOR πŸ‘‘

Perl Console was writen by Alexis Sukrieh <sukria@sukria.net>. πŸ’œ


and that's the whole page, bestie!! this doc ships with perl v5.32.0, dated 2021-01-03, and it lives in the User Contributed Perl Documentation collection. mwah, go evaluate some code, you're gonna slay πŸŽ€βœ¨πŸ”₯

πŸ“¦ where this page comes from