19 # Turn a numeric list into a hex string
21 my @return = map {sprintf("%02X", $_)} @_;
23 return @return if wantarray;
24 return join '', @return;
28 my ($prefix, @list) = @_;
30 sprintf("%s%02X", $prefix, $_)
33 return @return if wantarray;
34 die "Don't know what to do in scalar context.";