Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: packing/unpacking/split/join confusion

by pfaut (Priest)
on Jan 01, 2003 at 14:34 UTC ( #223575=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $str = pack('C*',48,49,50,51,52);
    print "$str\n";
    @chars = unpack('C*',$str);
    print join(', ',@chars),"\n";
    
  2. or download this
    012345
    48, 49, 50, 51, 52
    
  3. or download this
    ---
    print map { my ($m)=1<<hex($_)&11?' ':'';
    $m.=substr('AHJPacehklnorstu',hex($_),1) }
    split //,'2fde0abe76c36c914586c';
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2014-08-20 16:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (119 votes), past polls