Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Libraries

    Finance::QIF 2.06

    Download button

    No screenshots available
    Downloads: 540  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Matthew McGillis and Phil Lobbes | More programs
    Perl Artistic License / FREE
    September 26th, 2007, 00:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Finance::QIF description

    Finance::QIF can parse and create Quicken Interchange Format files.

    Finance::QIF can parse and create Quicken Interchange Format files.

    SYNOPSIS

    use Finance::QIF;

    my $qif = Finance::QIF->new( file => "test.qif" );

    while ( my $record = $qif->next ) {
    print( "Header: ", $record->{header}, "n" );
    foreach my $key ( keys %{$record} ) {
    next
    if ( $key eq "header"
    || $key eq "splits"
    || $key eq "budget"
    || $key eq "prices" );
    print( " ", $key, ": ", $record->{$key}, "n" );
    }
    if ( exists( $record->{splits} ) ) {
    foreach my $split ( @{ $record->{splits} } ) {
    foreach my $key ( keys %{$split} ) {
    print( " Split: ", $key, ": ", $split->{$key}, "n" );
    }
    }
    }
    if ( exists( $record->{budget} ) ) {
    print(" Budget: ");
    foreach my $amount ( @{ $record->{budget} } ) {
    print( " ", $amount );
    }
    print("n");
    }
    if ( exists( $record->{prices} ) ) {
    print(" Date Close Max Min Volumen");
    $format = " %8s %7.2f %7.2f %7.2f %-8dn";
    foreach my $price ( @{ $record->{prices} } ) {
    printf( $format,
    $price->{"date"}, $price->{"close"}, $price->{"max"},
    $price->{"min"}, $price->{"volume"} );
    }
    }
    }

    Finance::QIF is a module for working with QIF (Quicken Interchange Format) files in Perl. This module reads QIF data records from a file passing each successive record to the caller for processing. This module also has the capability of writing QIF records to a file.

    The QIF file format typically consists of a header containing a record or transaction type, followed by associated data records. Within a file there may be multiple headers. Headers are usually followed by data records, however data is not required to always follow a header.

    A hash reference is returned for each record read from a file. The hash will have a "header" value which contains the header type that was read along with all supported values found for that record. If a value is not specified in the data file, the value will not exist in this hash.

    No processing or validation is done on values found in files or data structures to try and convert them into appropriate types and formats. It is expected that users of this module or extensions to this module will do any additional processing or validation as required.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Quicken Interchange | QIF parser | Perl module | QIF | parser | finance



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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