Open snoopyjc opened 2 years ago
Regex inside subscript generates bad code. For example:
$interfaces{$key}{vrf} = $line[($dir =~ /agnip$/) ? 21:24];
tries to apply the regex to $line instead of $dir.
$line
$dir
Implemented in https://github.com/snoopyjc/pythonizer v0.920
Regex inside subscript generates bad code. For example:
tries to apply the regex to
$line
instead of$dir
.