Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: converting artibrary binary data to numeric values

by GrandFather (Sage)
on Oct 01, 2012 at 23:29 UTC ( #996763=note: print w/replies, xml ) Need Help??

in reply to converting artibrary binary data to numeric values

Show us some code that demonstrates the problem. Corion has shown various sample code that probably answers your question, but I suspect you don't understand it so you are guessing at answers and are not only getting it wrong, but you are probably providing misleading information to us too.

So, show us some sample code using one of the two strings "\x0D\x0E\x0A\x0D\x0B\x0E\x0E\x0F" or "\xDE\xAD\xBE\xEF" (whichever is appropriate) and tell us what you get and what you expect. Note that the second string is most likely to be correct. Both strings are big endien.

For your original question the code is simply my $flags = unpack('N', "\0\0\0\x01");

True laziness is hard work

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://996763]
[LanX]: not much to translate anyway since Goscinny died
[Eily]: https://en. wiki/List_of_Aster ix_characters some of the names were changed to include a new pun
[LanX]: sure some are even funnier now
[LanX]: some lost because they were not translated like Epidemais
[LanX]: some of the english names are funny too

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2017-05-24 15:07 GMT
Find Nodes?
    Voting Booth?