PIRL(1p)

πŸ“¦
version 0.0026 Β· 2 versions
  • 0.0026 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.0026 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– pirl(1p) β€” the Perl REPL bestie πŸ’–

okay so, hi. welcome to pirl, a read-eval-print loop in Perl (peep Shell::Perl for the whole lore). it's a manual page, but make it a group chat. let's go 🫢


✨ SYNOPSIS ✨

like, here's the entire vibe in one look:

pirl
pirl --noornaments

pirl --version
pirl -v

pirl -I dir
pirl -Idir1 -Idir2

that's it. that's the whole summoning ritual πŸ’…


🌸 EXAMPLE SESSION 🌸

not me showing you a whole real conversation with the shell, because honestly, watching it work >>>>> reading about it:

$ 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

see how she just… answers you? the math? slayed. the module loading? ate. the regex capture list? iconic. the :q at the end? bye bestie, exit clean πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so, this script? it's the command-line interface to Shell::Perl, and Shell::Perl is the one doing literally all the heavy lifting. pirl is the pretty face, Shell::Perl is the main character energy behind it. πŸ’œ

for the fine details β€” and bestie, there ARE fine details β€” go read the "Shell::Perl" documentation. it's giving "the real manual is over there". go, shoo, it's worth it 🌈


πŸŽ€ OPTIONS πŸŽ€

one bullet per flag, no skipping, no summarising, we're thorough in this house:

  • -I dir β€” add the given directory to @INC. that's how you tell Perl where to find your modules, periodt.
  • --ornaments β€” turn on terminal ornaments. this is the default, so it's the vibe you get for free ✨
  • --noornaments β€” turn off terminal ornaments. minimalism era, we respect it.
  • --version, -v β€” prints version info and exits with 0. it says hi, tells you what it is, and dips. no cap. πŸŽ€

πŸ‘€ SEE ALSO πŸ‘€

see Shell::Perl for more documentation. like, actually go look. that's where the good stuff lives. iykyk 🌸


Copyright (C) 2007–2011 by Adriano R. Ferreira

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

free software!! free as in do-what-you-want-within-the-Perl-terms. we love a generous license 🫢


and that's a wrap, bestie. this page came to you from perl v5.34.0, dated 2022-06-17, and it's filed under PIRL(1p) β€” go forth and 1+1 in your terminal. slay, exit with 0, hydrate πŸ’…πŸ’–

πŸ“¦ where this page comes from