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.
In reply to Re: Nicer hex-unpack
by TomDLux
in thread Nicer hex-unpack
by tritt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |