Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: question about pack

by TomDLux (Vicar)
on Oct 15, 2013 at 00:14 UTC ( #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 (Bishop) 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
Node Status?
node history
Node Type: note [id://1058220]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2020-09-27 17:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (142 votes). Check out past polls.

    Notices?