in reply to Follow up: String Formatting
sub hex_dump { return join ' ', map { sprintf('%02X', ord($_)) } split //, (@_ ? $_[0] : $_); } print('password: ', hex_dump($password), "\n"); print('VAR1: ', hex_dump($VAR1 ), "\n");
Update: Added missing ord.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Follow up: String Formatting
by choedebeck (Beadle) on Dec 05, 2005 at 21:23 UTC | |
by Roy Johnson (Monsignor) on Dec 05, 2005 at 21:48 UTC |