Doing as you suggest does produce the sought-after output:
Still, I can't help wondering why only the "if ($foo eq 'bar')" script was affected while the "if ($foo)" script did what I expected regardless of where I put the -s.mojodaddy@muchomojo:~$ perl -s foo_eq_bar.pl -foo=bar true woo woo-hoo woopty-doo
In reply to Re^2: unexpected results using -s switch
by mojodaddy
in thread unexpected results using -s switch
by mojodaddy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |