Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: The skinny on MSB.

by arturo (Vicar)
on Aug 09, 2001 at 22:45 UTC ( [id://103557]=note: print w/replies, xml ) Need Help??


in reply to The skinny on MSB.

The perl binary "knows" because it is built for a particular system. Any bit-fiddling that needs doing internally is automatically handled, by routines that are built based on the system architecture.

Of course, that doesn't mean that any particular application that one might write to fiddle with bits automatically knows. You have to figure out what kind of system you're fiddling bits for to figure out whether it's "big endian" or "little endian"; how you figure that out depends on your application.

HTH

perl -e 'print "How sweet does a rose smell? "; chomp ($n = <STDIN>); +$rose = "smells sweet to degree $n"; *other_name = *rose; print "$oth +er_name\n"'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-25 05:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found