snoopyjc / pythonizer

Automatic translator from Perl to Python
https://snoopyjc.org/pythonizer/
Artistic License 2.0
12 stars 1 forks source link

Popping an arrayref off an array and pushing that to another array generates incorrect code #365

Open snoopyjc opened 1 year ago

snoopyjc commented 1 year ago

Popping an arrayref off an array and pushing that to another array generates incorrect code. For example (from Date::Manip::TZ):

push(@periods,pop(@tmp))  if (@tmp);