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

No code is generated for pattern match in spite of side effects #73

Open snoopyjc opened 2 years ago

snoopyjc commented 2 years ago

No code is generated for pattern match in spite of side effects. For example:

"976562500000000" =~ /(\d+)/;

is an expression and generates no code. Instead it needs to run the pattern match which sets $1 to the matching pattern.

snoopyjc commented 2 years ago

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