Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: question about pack

by TomDLux (Vicar)
on Oct 15, 2013 at 00:14 UTC ( [id://1058220]=note: print w/replies, xml ) Need Help??


in reply to question about pack

Why don't you try it and tell us? Something like ...

for my $data ( 250 .. 260 ) { my $packed = pack 'c', $data; printf "%X => %X\n", $data, $packed; }

As Occam said: Entia non sunt multiplicanda praeter necessitatem.

Replies are listed 'Best First'.
Re^2: question about pack
by AnomalousMonk (Archbishop) on Oct 15, 2013 at 03:02 UTC

    ... or perhaps better as:

    >perl -wMstrict -le "my $cp = pack 'c*', 256 .. 260, 320 .. 324; print qq{'$cp'}; "
Re^2: question about pack
by lightoverhead (Pilgrim) on Oct 16, 2013 at 01:24 UTC

    They are all "0"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-23 18:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found