Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: string, or integer?

by halley (Prior)
on May 10, 2004 at 15:02 UTC ( #352094=note: print w/ replies, xml ) Need Help??


in reply to string, or integer?

You should have guessed that pack() is the opposite of unpack(). From perldoc -f pack:

    The resulting string is the concatenation of the converted values. Typically, each converted value looks like its machine-level representation.
my $bytes = pack("n", 9); # network byte order for 0x0009

--
[ e d @ h a l l e y . c c ]


Comment on Re: string, or integer?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2015-07-29 04:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls