Skip to content

Simplify sentance in perlpacktut.pod #23354

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: blead
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions pod/perlpacktut.pod
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,10 @@ of these two functions.

To see how (un)packing works, we'll start with a simple template
code where the conversion is in low gear: between the contents of a byte
sequence and a string of hexadecimal digits. Let's use C<unpack>, since
this is likely to remind you of a dump program, or some desperate last
message unfortunate programs are wont to throw at you before they expire
into the wild blue yonder. Assuming that the variable C<$mem> holds a
sequence of bytes that we'd like to inspect without assuming anything
sequence and a string of hexadecimal digits. Let's use C<unpack>,
since this may remind you of a hex dump or a crash message emitted by
a program just before it fails. Assuming that the variable C<$mem> holds
a sequence of bytes that we'd like to inspect without assuming anything
about its meaning, we can write

my( $hex ) = unpack( 'H*', $mem );
Expand Down
Loading