pythonizer icon indicating copy to clipboard operation
pythonizer copied to clipboard

Scalar context is not properly handled

Open snoopyjc opened this issue 3 years ago • 1 comments

Scalar context is not properly handled. Examples:

$x = @z;
$x = localtime();
$y = 3 + @z;
$y = @z - 1;
$bl = @z > 3;
$bl = 3 <= @z;
print "Z has " . @z . " elements";
print "At the tone, the time will be " . localtime();
say scalar localtime();

snoopyjc avatar Nov 13 '21 16:11 snoopyjc

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

snoopyjc avatar Feb 07 '22 16:02 snoopyjc