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

    LotusNotes::LoadExport 1.01

    Download button

    No screenshots available
    Downloads: 206  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Greg George | More programs
    Perl Artistic License / FREE
    June 30th, 2010, 21:17 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    LotusNotes::LoadExport description

    A module to automate the processing of LotusNotes text export files

    LotusNotes::LoadExport is a Perl module designed to read text files generated from a LotusNotes 'Structured Text' export. Normally the 'Word wrap within documents' entry (as part of the export) is set to 999 characters (as many 9's as you can enter in the field). The 'Separator between documents' is assumed to be linefeed (the export default).

    Load records from a Lotus Notes database export.

    Expects an array reference of fields to extract.

    Returns an array reference of hashes where each hash represents a record

    SYNOPSIS

     #! perl -w
     use strict;
     use LotusNotes::LoadExport;
     use Data::Dumper;
     $Data::Dumper::Indent = 1;

     my @labels = (qw{ VersionLic AppName Version UserID WorkstationID });
     # Here application_license.txt is a LotusNotes export (see DESCRIPTION below)
     my $ln = LotusNotes::LoadExport->new(filename => 'application_license.txt', fieldnames => \@labels);

     # Get ALL the data (you may not want to do this - see next below)
     my $data = $ln->load();
     print Dumper($data), "\n";
     exit;

     # Iterator based data access
     while (my $data = $ln->get_next())
     {
     # Do something with each record
     print Dumper($data), "\n";
     }


     Example output:

     $VAR1 = [
     {
     'AppName' => 'ABC Flowcharter',
     'Version' => '7.0',
     'WorkstationID' => 'PC-1234',
     'UserID' => 'tom.smith',
     'VersionLic' => '7.0'
     },
     {
     'AppName' => 'MS-Access',
     'Version' => '2007',
     'WorkstationID' => 'PC-3043',
     'UserID' => 'sally.jones'
     }
     ];



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    LotusNotes text | export text | Perl module | LotusNotes | text | export

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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