I have a value that's blank, and I want it to show as the numeral zero. If I just use $v in the interpolation, it naturally just comes out blank. If I say +$v in an expression (say an argument to print or join, not within a string literal), I thought it would force numeric context and give a zero. It doesn't do anything at all! If I try 0+$v, I get the expected result, but also get a warning that "" is not a number in the case where it was blank.
Why doesn't the leading + work? I thought that was supposed to do it.
FWIW, printf with %d and int work OK, but give warnings too.