Subject: | Documentation addition for Enterprise operation |
Hi,
It would be useful to note that the Enterprise operator has the unfortunate behavior of evaluating the value, regardless of the state of the condition:
e.g:
% perl -E '@x = ( say( "foo") ) x!!(0);'
foo
while the more verbosely written:
% perl -E '@x = ( 0 ? say( "foo") : () )'
doesn't.
Thanks,
Diab