Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Unpacking byte stream long/quad little/big endian fields

by GrandFather (Saint)
on Jan 22, 2021 at 00:54 UTC ( #11127252=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    
        printf "%s: %016x\n", ($fileLE ? "LE" : "BE"), $longlong;
    }
    
  2. or download this
    Perl v5.32.0 MSWin32-x86-multi-thread-64int ivsize 8 byteorder 1234567
    +8
    BE: 9134339081323180
    LE: 8031328190333491
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://11127252]
Approved by LanX
Front-paged by stevieb
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2021-04-23 11:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?