S
sreservoir
% perl -E'say -0'
0
% perl -E'say -undef'
-0
% perl -E'say(("-0")? 1 : 0)'
1
% perl -E'say((-undef)? 1 : 0)'
0
% perl -E'say ref -undef'
what is a -0 supposed to be and why does undef evaluate to it? it is
apparently not the string "-0", nor is it a ref with that string value;
is this some sort of magical trickery?
0
% perl -E'say -undef'
-0
% perl -E'say(("-0")? 1 : 0)'
1
% perl -E'say((-undef)? 1 : 0)'
0
% perl -E'say ref -undef'
what is a -0 supposed to be and why does undef evaluate to it? it is
apparently not the string "-0", nor is it a ref with that string value;
is this some sort of magical trickery?