Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Understanding pack and unpack changes for binary data between 5.8 and 5.10

by ikegami (Patriarch)
on Mar 12, 2009 at 04:28 UTC ( [id://750076]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    print(Dumper(pack('V/a*', $s)), "\n");
    
    print(Dumper(pack('V/a*', "\x{C9}\x{2660}")), "\n");
    
  2. or download this
    "\1\0\0\0\311"             # Ok
    "\1\0\0\0\x{c9}"           # Ok
    "\2\0\0\0\x{c9}\x{2660}"   # Does this make sense???
    
  3. or download this
    "\1\0\0\0\311"             # Ok
    "\1\0\0\0\303"             # XXX
    "\2\0\0\0\303\242"         # XXX
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2024-04-19 13:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found