Linux SoftwareProgrammingLibrariesParse::Binary::FixedFormat 0.10

Parse::Binary::FixedFormat 0.10


Parse::Binary::FixedFormat is a Perl module to convert between fixed-length fields and hashes. SYNOPSIS use Parse::Binary::F
Developer:   Autrijus Tang
      more software by author →
Price:  0.00
License:   Perl Artistic License
File size:   31K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


Parse::Binary::FixedFormat is a Perl module to convert between fixed-length fields and hashes.

SYNOPSIS

use Parse::Binary::FixedFormat;

my $tarhdr =
new Parse::Binary::FixedFormat [ qw(name:a100 mode:a8 uid:a8 gid:a8 size:a12
mtime:a12 chksum:a8 typeflag:a1 linkname:a100
magic:a6 version:a2 uname:a32 gname:a32
devmajor:a8 devminor:a8 prefix:a155) ];
my $buf;
read TARFILE, $buf, 512;

# create a hash from the buffer read from the file
my $hdr = $tarhdr->unformat($buf); # $hdr gets a hash ref

# create a flat record from a hash reference
my $buf = $tarhdr->format($hdr); # $hdr is a hash ref

# create a hash for a new record
my $newrec = $tarhdr->blank();

Parse::Binary::FixedFormat can be used to convert between a buffer with fixed-length field definitions and a hash with named entries for each field. The perl pack and unpack functions are used to perform the conversions. Parse::Binary::FixedFormat builds the format string by concatenating the field descriptions and converts between the lists used by pack and unpack and a hash that can be reference by field name.

Requirements:
  • Perl
    tags parse binary  binary fixedformat  pack and  and unpack  ref create  from the  convert between  fixed length  hash ref  

    Download Parse::Binary::FixedFormat 0.10


     http://mirrors.evolva.ro/CPAN/authors/id/S/SM/SMUELLER/Parse-Binary-0.10.tar.gz


    Authors software

    Term::ANSIScreen 1.42 (by Autrijus Tang)
    Term::ANSIScreen is a Perl module for terminal control using ANSI escape sequences.

    SYNOPSIS

    # qw/:color/ is exported by de

    Convert::EastAsianWidth 0.03 (by Autrijus Tang)
    Convert::EastAsianWidth is a Perl module that can convert between full- and half-width characters.

    SYNOPSIS

    # Exports to_fu

    Convert::GeekCode 0.51 (by Autrijus Tang)
    Convert::GeekCode is a Perl module that can convert and generate geek code sequences.

    SYNOPSIS

    use Convert::GeekCode; # exp

    Parse::Binary::FixedFormat 0.10 (by Autrijus Tang)
    Parse::Binary::FixedFormat is a Perl module to convert between fixed-length fields and hashes.

    SYNOPSIS

    use Parse::Binary::F

    Convert::CharMap 0.01 (by Autrijus Tang)


    Similar software

    Parse::Binary::FixedFormat 0.10 (by Autrijus Tang)
    Parse::Binary::FixedFormat is a Perl module to convert between fixed-length fields and hashes.

    SYNOPSIS

    use Parse::Binary::F

    Parse::Binary::FixedFormat::Variants 0.10 (by Autrijus Tang)
    Parse::Binary::FixedFormat::Variants is a Perl module to convert between variant records and hashes.

    Parse::Binary::FixedFormat su

    Convert::Binary::C 0.64 (by Marcus Holland-Moritz)
    Convert::Binary::C is a Binary Data Conversion using C Types.

    SYNOPSIS

    Simple
    use Convert::Binary::C;

    #--------------

    Verilog::Pli::Net 1.702 (by Wilson Snyder)
    Verilog::Pli::Net is a Verilog PLI tied net access hash.

    SYNOPSIS

    use Verilog::Pli::Net;

    $NET{"hier.signal"} = 1;
    pri

    Hachoir 0.7.0 (by Victor Stinner)
    Hachoir project is a Python library which can display a stream of binary data on a field per field basis

    hash.c 2 (by David Crawshaw)
    hash.c is a C hash table with quadratic probing

    XML::Parser::PerlSAX 0.08 (by Ken MacLeod)
    XML::Parser::PerlSAX is a Perl SAX parser using XML::Parser.

    SYNOPSIS

    use XML::Parser::PerlSAX;

    $parser = XML::Parser::Per

    uthash 1.2 (by Troy D. Hanson)
    uthash is a hash for C structures, allowing any C structure having a unique key field to be hashed.

    Structures can be deleted, add

    MP3::Splitter 0.03 (by Ilya Zakharevich)
    MP3::Splitter is a Perl extension for splitting MP3 files.

    SYNOPSIS

    use MP3::Splitter;
    mp3split('xx.mp3', {verbose => 1},

    XML::Records 0.12 (by Eric Bohlman)
    XML::Records is a Perl module for perlish record-oriented interface to XML.

    SYNOPSIS

    use XML::Records;
    my $p=XML::Records-


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags