RTFM background: http://perldoc.perl.org/functions/sprintf.html Size: h interpret integer as C type "short" or "unsigned short" %u an unsigned integer, in decimal %hu -> unsigned C type "short" This is Exactly the contents of the Perl variable as verified by C