Also note that when you get strange behavior like this B::Deparse can help clear up how perl is parsing your code.
$ perl -MO=Deparse,-p -e '($msgFile =~ /\-opt.dat$/) ? $optsFile = 1 : + $optsFile = 0;' ((($msgFile =~ /\-opt.dat$/) ? ($optsFile = 1) : $optsFile) = 0);
In reply to Re: ?: conditional operators appear to fail
by Fletch
in thread ?: conditional operators appear to fail
by landau351
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |