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

Re: (tye)Re: Detecting machine Endian-ness

by LunaticLeo (Scribe)
on Aug 07, 2001 at 02:58 UTC ( [id://102643]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @b = unpack('C*', pack('I', 0));
    return scalar(@b);
    
  2. or download this
    @b = unpack('C*', pack('I', 0));
    $sizeof_long = scalar(@b);
    ...
    else {
      return "strange";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (8)
As of 2024-04-23 09:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found