Open snoopyjc opened 2 years ago
Perl ? : operator generates bad code if the first part is not parenthesized, or if it's not directly used in an assignment statement. For example:
? :
$redirect = $options{debug} ? "2>&1" : "2>&1 >/dev/null";
Generates:
redirect='2>&1' if ['debug' else '2>&1 >/dev/null'
Fixed in https://github.com/snoopyjc/pythonizer
Perl
? :
operator generates bad code if the first part is not parenthesized, or if it's not directly used in an assignment statement. For example:Generates: