Since we're golfing,
$s = $1; $s =~ y|\x20-\x7e|.|c;
can be replaced with
( $s = $1 ) =~ y|\x20-\x7e|.|c;
It's one character shorter with spaces removed.
Or
$s = $1 =~ y|\x20-\x7e|.|cr;
It's yet another character shorter with spaces removed.
In reply to Re^6: hexdump -C
by ikegami
in thread hexdump -C
by NERDVANA
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |