Nice! I really ought to review all the perl docs again and see what other interesting things I've missed.
I just gave it a try, and it seems to work well. I went ahead and updated my .bashrc file:
. . . export PERL5LIB="/mystuff/Perl/LIB" export PERL5OPT="-Mstrict -Mwarnings" alias p5="perl -Mstrict -Mwarnings" . . .
and now have the behavior I want. Pretty nice.
The PERL5OPT setting might interfere with some other scripts (I won't know until I run into one of them), so I created an alias to do essentially the same thing. (I wonder why I haven't thought of that earlier?) I'll remove the PERL5OPT setting if/when it causes me any grief. As Your Mother mentions earlier, it's often going to be a problem for one-liners. I rarely use one-liners, but I don't know how many are embedded into many of the tools I use.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re^6: Perl logical operators
by roboticus
in thread Perl logical operators
by Sogalei
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |