$name =~ s/(\s+)$//; [download]
In reply to Re^3: Converting decimal value to hex by grizzley in thread Converting decimal value to hex by coldmiser