Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Data::Hexdumper 2.01

    Download button

    No screenshots available
    Downloads: 432  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.7/5)
    4 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    David Cantrell | More programs
    Perl Artistic License / FREE
    December 1st, 2007, 04:23 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Data::Hexdumper description

    Can make binary data human-readable.

    Data::Hexdumper can make binary data human-readable.

    SYNOPSIS

    use Data::Hexdumper qw(hexdump);
    $results = hexdump(
    data => $data, # what to dump
    number_format => 'S', # display as unsigned 'shorts'
    start_position => 100, # start at this offset ...
    end_position => 148 # ... and end at this offset
    );
    print $results;


    Data::Hexdumper provides a simple way to format arbitary binary data into a nice human-readable format, somewhat similar to the Unix 'hexdump' utility.

    It gives the programmer a considerable degree of flexibility in how the data is formatted, with sensible defaults. It is envisaged that it will primarily be of use for those wrestling alligators in the swamp of binary file formats, which is why it was written in the first place.

    SUBROUTINES

    The following subroutines are exported by default, although this is deprecated and will be removed in some future version. Please pretend that you need to ask the module to export them to you.

    If you do assume that the module will always export them, then you may also assume that your code will break at some point after 1 Aug 2012.

    hexdump

    Does everything. Takes a hash of parameters, one of which is mandatory, the rest having sensible defaults if not specified. Available parameters are:

    data

    A scalar containing the binary data we're interested in. This is mandatory.

    start_position

    An integer telling us where in data to start dumping. Defaults to the beginning of data.

    end_position

    An integer telling us where in data to stop dumping. Defaults to the end of data.

    number_format

    A character specifying how to format the data. This tells us whether the data consists of bytes, shorts (16-bit values), longs (32-bit values), and whether they are big- or little-endian. The permissible values are C, S, n, v, L, N, and V, having exactly the same meanings as they do in unpack. It defaults to 'C'.

    suppress_warnings

    Make this true if you want to suppress any warnings - such as that your data may have been padded with NULLs if it didn't exactly fit into an integer number of words, or if you do something that is deprecated.

    space_as_space

    Make this true if you want spaces (ASCII character 0x20) to be printed as spaces Otherwise, spaces will be printed as full stops / periods (ASCII 0x2E).

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    binary data | hex dumper | Perl module | hex | dumper | binary

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM