Perl Pack Unpack Printf Sprintf Cheat Sheet

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Perl Pack Unpack Printf Sprintf Cheat Sheet - Presentation Transcript

    1. Perl pack/unpack Summary Usage: • pack TEMPLATE, LIST • unpack TEMPLATE, EXPR Template parameter summary: Parameter Description 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. b A bit string (ascending bit order inside each byte, like vec()). B A bit string (descending bit order inside each byte). h A hex string (low nibble first). H A hex string (high nibble first). c A signed char value. C An unsigned char value. Only does bytes. See U for Unicode. s A signed short value. An unsigned short value. (This 'short' is _exactly_ 16 bits, which may differ from what a local C compiler calls S 'short

    + Peteris KruminsPeteris Krumins, 2 years ago

    custom

    2532 views, 0 favs, 0 embeds more stats

    Made at http://www.catonmat.net

    Cheat sheet contai more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 2532
      • 2532 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 10
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories