in reply to Re: binary numbers
in thread binary numbers

Surely a simpler way would be

# Trim number to 8 bits my $num = 0xff & shift;