Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^5: How do unpack templates work

by BrowserUk (Patriarch)
on Jul 20, 2012 at 20:35 UTC ( #982902=note: print w/replies, xml ) Need Help??

in reply to Re^4: How do unpack templates work
in thread How do unpack templates work

I do not understand your output in this case 'vzI&#..'

The last of the 4 characters, the ═ bit, is just a side effect of pasting console output into PMs code block.

Somewhere along the line, some characters with the high-bit set (ie. chars greater than 127) get converted into unicode html escape sequences.

Outside of a code block that looks like this: ═, which is exactly how it appeared on my console prior to C&P.

Is this behaviour unique to C?

No, it also applies to 'c' & 'W'.

As for documentation: for unpack, all it basically says is that it is the reverse of pack. Look at the docs for the latter, and think about the logical reverse.

But more than any other piece of Perl, the *only* way to understand pack & unpack, is to get yourself a REPL and sit and play.

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

Replies are listed 'Best First'.
Re^6: How do unpack templates work
by unlinker (Monk) on Jul 20, 2012 at 21:12 UTC
    Got it. Thank you for your patience and your time.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://982902]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2022-05-16 19:02 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (63 votes). Check out past polls.