develooper Front page | perl.perl5.porters | Postings from January 2012

pack and ASCII

Thread Next
January 9, 2012 03:30
pack and ASCII
Message ID:
According to perlfunc.pod, about pack:

    The TEMPLATE is a sequence of characters that give the order and type
    of values, as follows:

         a  A string with arbitrary binary data, will be null padded.
         A  A text (ASCII) string, will be space padded.
         Z  A null-terminated (ASCIZ) string, will be null padded.

The reference to ASCII (and ASCIZ) seems to be out of date, given recent 
unicode efforts.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About