in reply to hex escape Question
print map chr hex, qw( 01 42 62 00 01 );
Update: To use pack, you can
print map { pack 'H2', $_ } qw( 01 42 62 00 01 );
or
print pack 'H*', '0142620001';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: hex escape Question
by Monk::Thomas (Friar) on Jul 28, 2015 at 18:05 UTC | |
by mfawbush (Initiate) on Jul 28, 2015 at 18:31 UTC | |
by Monk::Thomas (Friar) on Jul 29, 2015 at 06:08 UTC | |
by mfawbush (Initiate) on Jul 29, 2015 at 02:35 UTC |