in reply to Re: binary numbersin thread binary numbers
Surely a simpler way would be
# Trim number to 8 bits my $num = 0xff & shift; [download]