Your description of the input format is lacking.

If those numbers represent the numeric values of the bytes of a string, then this is just reconstructing that string from the information supplied:

my $bytes = pack 'C*', 0x00, 0x00, 0x01, 0x16, 0x7A, 0x53, 0x7C, 0x80;

And that can be decoded as a 64-bit network-order unsigned integer using:

print unpack 'Q', scalar reverse $bytes;; 1196053200000

If you have those numeric values in an array of scalars somewhere, you can skip a level:

print unpack 'Q', pack 'C8', reverse 0x00, 0x00, 0x01, 0x16, 0x7A, 0x +53, 0x7C, 0x80;; 1196053200000

Update: And if you have 5.10 with the fancy new endian modifiers, then:

print unpack 'Q>', pack 'C8', 0x00, 0x00, 0x01, 0x16, 0x7A, 0x53, 0x7 +C, 0x80;; 1196053200000

If you don't have a 64-bit integer capable perl, it takes a little more work:

( $hi, $lo ) = unpack 'NN', $bytes;; print +($hi * 2**32 ) + $lo;; 1196053200000

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.
RIP PCW It is as I've been saying!(Audio until 20090817)

In reply to Re: Little help for the (un)pack challenged by BrowserUk
in thread Little help for the (un)pack challenged by Your Mother

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.