The C template does not help you here. You're probably making a wrong assumption about it. Just stay with H if you want to make hex digits out of octets.
my $uuid = "vz\336\315\216\322\341\21\221\364\261\220z\240\267\344";
# hex 767adecd8ed2e11191f4b1907aa0b7e4
my ($uu1, $uu2) = unpack('H8 H*', $uuid);
say $uu1; # 767adecd
say $uu2; # 8ed2e11191f4b1907aa0b7e4
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|