Setting up an alias in your shell's rc file helps - for bash:

alias sperl='env PERL5OPT="-Mstrict -Mwarnings" perl'

You keep running your oneliners without strictures; but if something blows or feels fishy, you just interrupt and type

prompt$ s!!

to run your latest command under strict and warnings.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

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 shmem
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":