Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 goofing around in the Monastery: (2)
As of 2025-07-19 23:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.