Which is faster, more efficient, or otherwise better?
Hey, which is shorter!
sub hexout { join (' ', map { sprintf "%02x", $_ } (unpack ("C*", shift))); }
In reply to golf anyone? (hexdump) by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |