http://qs1969.pair.com?node_id=1134546


in reply to The mystery of double bitwise negation

For integers, it's no-op that evaluates its operand in scalar context. So,
set_in_declare(~~@{$temp_name||[]});
is being used in place of
set_in_declare(scalar(@{$temp_name||[]}));