note
robartes
<p>As [gellyfish] correctly states, [perldoc://substr()] is being used as an <em>lvalue</em> here, i.e. something you can assign to. In this case, you are replacing five characters (the third argument) of <code>$DATE</code>, starting at position two (the second argument, and counting from 0) with the concatenation <code>$YEAR.$MONTH</code>. Hence the output you observe.</p>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-201687">
<p>CU<br>Robartes-
</div></div>
465154
465154