I have a different rule for avoiding this problem: Whenever you do an assignment in an expression, put parens around the assignment. There are lots of things beside ?: that will bite you when you put an assignment inside of an expression, for example, ($new=$old) =~ s/x/y/g;
- tye (but my friends call me "Tye")In reply to (tye)Re: Why won't $' work in a trinary operation?
by tye
in thread Why won't $' work in a trinary operation?
by satchboost
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |