Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    BBDB 1.40

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Henry Laxen | More programs
    Perl Artistic License / FREE
    May 15th, 2007, 13:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    BBDB description

    BBDB is a Perl module to read and write BBDB files.

    BBDB is a Perl module to read and write BBDB files.

    SYNOPSIS

    use BBDB;
    my $x = new BBDB();
    $x->decode($string);
    my $str = $x->encode();
    # At this point, subject to the BUGS below
    # $str is the same as $string

    my $allR = BBDB::simple('/home/henry/.bbdb');
    map { print $_->part('first')} @$allR; # print out all the first names

    Data Format

    The following is the data layout for a BBDB record. I have created a sample record with my own data. Each field is just separated by a space. I have added comments to the right

    ["Henry" The first name - a string
    "Laxen" The last name - a string
    ("Henry, Enrique") Also Known As - comma separated list
    "Elegant Solution" Business name - a string
    (["home" 415 789 1159 0] Phone number field - US style
    ["fax" 415 789 1156 0] Phone number field - US style
    ["mazatlan" "011-5269-164195"] Phone number field - International style
    )
    (["mailing" The address location, then a list
    ("PMB 141" "524 San Anselmo Ave.") for the street address, then one each
    "San Anselmo" "CA" "94960" "USA" for City, State, Zip Code, and country
    ]
    ["mazatlan" another Address field
    ("Reino de Navarra #757" "Frac. El Cid") The street list
    "Mazatlan" "Sinaloa" City State
    "82110" "Mexico" Zip and country
    ]
    )
    ("nadine.and.henry@pobox.com" The net addresses - a list of strings
    "maztravel@maztravel.com")
    ((creation-date . "1999-09-02") The notes field - a list of alists
    (timestamp . "1999-10-17")
    (notes . "Always split aces and eights")
    (birthday "6/15")
    )
    nil The cache vector - always nil
    ]

    After this is decoded it will be returned as a reference to a BBDB object. The internal structure of the BBDB object mimics the lisp structure of the BBDB string. It consists of a reference to an array with 9 elements The Data::Dumper output of the above BBDB string would just replaces all of the ()s with []s. It can be accessed by using the $bbdb-part('all')> method. For completeness, here is the output of Data::Dumper for the above record:

    $VAR1 = bless( {
    'data' => [
    'Henry',
    'Laxen',
    [
    'Henry, Enrique'
    ],
    'Elegant Solutions',
    [
    [
    'home',
    [
    '415',
    '789',
    '1159',
    '0'
    ]
    ],
    [
    'fax',
    [
    '415',
    '789',
    '1156',
    '0'
    ]
    ],
    [
    'mazatlan',
    '011-5269-164195'
    ]
    ],
    [
    [
    'mailing',
    [
    'PMB 141',
    '524 San Anselmo Ave.'
    ],
    'San Anselmo',
    'CA',
    '94960',
    'USA'
    ],
    [
    'mazatlan',
    [
    'Reino de Navarra #757',
    'Frac. El Cid'
    ],
    'Mazatlan',
    'Sinaloa',
    'CP-82110',
    'Mexico'
    ]
    ],
    [
    'nadine.and.henry@pobox.com',
    'maztravel@maztravel.com'
    ],
    [
    [
    'creation-date',
    '1999-09-02'
    ],
    [
    'timestamp',
    '1999-10-17'
    ],
    [
    'notes',
    'Always split aces and eights'
    ],
    [
    'birthday',
    '6/15'
    ]
    ]
    ]
    }, 'BBDB' );

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    read BBDB files | write BBDB files | Perl module | BBDB | read | write

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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