note
ikegami
<blockquote><p><i>it should be silently truncated.</i></blockquote>
<c>
no warnings qw( pack );
</c>
<blockquote><p><i>More to the point, I think unicode should be explicitly enabled by those that need it</i></blockquote>
<p>You're getting an overflow warning. It has nothing to do with Unicode. In fact, <c>pack</c> and <c>unpack</c> don't use Unicode at all.*
<p>* — Not even "U" has any understanding of Unicode.
<c>
>perl -wE"say sprintf '%X', unpack 'U', pack 'U', 0x200000"
200000
</c>
906373
906408