in reply to Nicer hex-unpack

I would use Readonly my $XXX => 0xcccc; rather than use constant, and of course equivalent numbers are equivalent without needing explicit conversion.

What is it you find clumsy?

As Occam said: Entia non sunt multiplicanda praeter necessitatem.