in reply to Re: How to use the -T file op as a one-liner
in thread How to use the -T file op as a one-liner

Nice work Ken number one!

Coincidentally, I just finished watching the excellent What's new in perl 5.38 by Paul "Leonerd" Evans, delivered at TPRC 2023, which taught me that:

... so by upgrading to perl 5.36 or higher you can lose the verbose use strict; use warnings; from your excellent one-liner.

Update: of course, use v5.12 or higher already implies use strict, so you don't need that in your original v5.34 one liner. See also: the clever perle alias invented and heavily used by Ken number two.

Replies are listed 'Best First'.
Re^3: How to use the -T file op as a one-liner
by cavac (Prior) on Aug 13, 2023 at 11:04 UTC

    Of course, the real creativity comes in when you manage to incorporate those warnings into your one-liner as part of the input to generate your output. But that probably would require posting the solution in Obfuscated Code ;-)

    PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP