Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: Pack function

by vrajan (Novice)
on Aug 02, 2005 at 07:55 UTC ( [id://480106]=note: print w/replies, xml ) Need Help??


in reply to Re: Pack function
in thread Pack function

With "n" i get 1000000000000000 in one binary and 1010010000000000 in the other.
With "N" i get 00000000000000001010010000000000 with both binaries.

Replies are listed 'Best First'.
Re^3: Pack function
by esskar (Deacon) on Aug 02, 2005 at 09:42 UTC
    perldoc -f pack says:
    n An unsigned short in "network" (big-endian) order.
    N An unsigned long in "network" (big-endian) order.

    IMHO it can't be endian problem!?!
Re^3: Pack function
by BrowserUk (Patriarch) on Aug 02, 2005 at 09:04 UTC

    One is running on a little-endian machine and the other on a big-endian?


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.
      I am running the code on the same machine.

        Identical code on the same machine, different binaries producing different results.

        The only variable is the binaries?

        Conclusion: One of the binaries is broken.


        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
        "Science is about questioning the status quo. Questioning authority".
        The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-16 15:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found