File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -41,11 +41,10 @@ of these two functions.
41
41
42
42
To see how (un)packing works, we'll start with a simple template
43
43
code where the conversion is in low gear: between the contents of a byte
44
- sequence and a string of hexadecimal digits. Let's use C<unpack>, since
45
- this is likely to remind you of a dump program, or some desperate last
46
- message unfortunate programs are wont to throw at you before they expire
47
- into the wild blue yonder. Assuming that the variable C<$mem> holds a
48
- sequence of bytes that we'd like to inspect without assuming anything
44
+ sequence and a string of hexadecimal digits. Let's use C<unpack>,
45
+ since this may remind you of a hex dump or a crash message emitted by
46
+ a program just before it fails. Assuming that the variable C<$mem> holds
47
+ a sequence of bytes that we'd like to inspect without assuming anything
49
48
about its meaning, we can write
50
49
51
50
my( $hex ) = unpack( 'H*', $mem );
You can’t perform that action at this time.
0 commit comments