in reply to Hex Numbers and Range Operator

0xFF is just a different way of writing the decimal number 255; they are interchangeable in your Perl source code. Since decimal is the "native" number representation for humans, Perl outputs numbers in a decimal base, unless instructed otherwise.

The printf or sprintf function will coerce the numbers into hex strings:

my @hex_nums = map { sprintf '%02X', $_ } 0..255;