Some tasks are too menial for a dedicated script but still too cumbersome even with the many neat one-liner options of "perl -E". This small script fills the gap: various one-letter commands & magic variables (with meaningful aliases too) and more nifty loop options take Perl programming to the command line. Fully imports List::Util. With no program on the command line, starts a pl Shell.

How to "e(cho)" values, including from "@A(RGV)", with single "$q(uote)" & double "$Q(uote)". Same for hard-to-print values:
$  pl  'e  "${q}Perl$q",  "$Q@A$Q"'  one-liner
$  pl  'e  \"Perl",  \@A,  undef'  one-liner

Loop over args, printing each with line ending.  And same, SHOUTING:
$  pl  -opl  ''  Perl  one-liner
$  pl  -opl  '$_  =  uc'  Perl  one-liner

Print up to 3 matching lines, resetting count (and "$.") for each file:
$  pl  -rP3  '/Perl.*one.*liner/'  file*

Count hits in magic statistics hash "%N(UMBER)":
$  pl  -n  '++$N{$1}  while  /(Perl|one|liner)/g'  file*

Features

  • perl
  • powerful
  • terse
  • one-liner
  • onelinerer
  • command line interface
  • 1liner
  • 1linerer
  • cli

Project Activity

See All Activity >

Categories

Usability, System

License

Artistic License, GNU General Public License version 2.0 (GPLv2), GNU General Public License version 3.0 (GPLv3)

Follow pl

pl Web Site

nel_h2
Secure User Management, Made Simple | Frontegg Icon
Secure User Management, Made Simple | Frontegg

Get 7,500 MAUs, 50 tenants, and 5 SSOs free – integrated into your app with just a few lines of code.

Frontegg powers modern businesses with a user management platform that’s fast to deploy and built to scale. Embed SSO, multi-tenancy, and a customer-facing admin portal using robust SDKs and APIs – no complex setup required. Designed for the Product-Led Growth era, it simplifies setup, secures your users, and frees your team to innovate. From startups to enterprises, Frontegg delivers enterprise-grade tools at zero cost to start. Kick off today.
Start for Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of pl!

Additional Project Details

Operating Systems

Android, Linux, Mac, Windows

Intended Audience

Advanced End Users

User Interface

Command-line

Programming Language

Perl, Unix Shell

Related Categories

Unix Shell Usability Software, Unix Shell System Software, Perl Usability Software, Perl System Software

Registered

2020-04-08