softpano / pythonizer

Translator (or more correctly transcriber) from Perl to Python
http://www.softpanorama.org/Scripting/Pythonorama/Python_for_perl_programmers/Pythonizer/index.shtml
Other
39 stars 17 forks source link

Bad code is generated if the program uses both @var and $var #92

Open snoopyjc opened 2 years ago

snoopyjc commented 2 years ago

Bad code is generated if the program uses both @var and $var. For example:

  my @verno = sort keys %vers;
  foreach my $verno (@verno) {...}

@verno and $verno will both share verno in the generated code.

snoopyjc commented 2 years ago

Fixed in v0.931: https://github.com/snoopyjc/pythonizer