in reply to Why won't $' work in a trinary operation?

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")
  • Comment on (tye)Re: Why won't $' work in a trinary operation?