Coincidentally there was a p5p thread just this morning about an additional option to do just this (strict + warnings for oneliners; the original suggestion was a unicode -ǝ or -Ǝ).

https://www.nntp.perl.org/group/perl.perl5.porters/2019/07/msg255600.html

The cake is a lie.
The cake is a lie.
The cake is a lie.


In reply to Re: Off by one key... or yet another example of why strict and warnings are always a good idea (even for "one-liners") by Fletch
in thread Off by one key... or yet another example of why strict and warnings are always a good idea (even for "one-liners") by atcroft

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":