"be consistent" | |
PerlMonks |
Re^6: Perl logical operatorsby roboticus (Chancellor) |
on Jul 19, 2018 at 15:55 UTC ( [id://1218840]=note: print w/replies, xml ) | Need Help?? |
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:
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 Section
Seekers of Perl Wisdom
|
|