pythonizer icon indicating copy to clipboard operation
pythonizer copied to clipboard

Perl variables/arrays/hashes are created out of whole cloth - attempt to handle some of these

Open snoopyjc opened this issue 3 years ago • 1 comments

Perl variables/arrays/hashes are created out of whole cloth - attempt to handle some of these by checking for a reference to a var/array/hash before it's defined and inserting a definition/initialization. For example:

$options{this} = 1;

creates the %options hash, then adds one key/value to it.

$i++;

creates the variable i, then adds 1 to it.

The generated python code gives errors because these variables are undefined.

snoopyjc avatar Nov 12 '21 05:11 snoopyjc

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

snoopyjc avatar Feb 07 '22 16:02 snoopyjc