in reply to Re: unexpected results using -s switch
in thread unexpected results using -s switch
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
|
|---|