The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Text::CSV::Basic - Get data from Text CSV file using header field.

VERSION

    1.03

SYNOPSIS

        my $obj = Text::CSV::Basic->new;
        my @data = $obj->getfield('field_name');
        print @$_ foreach @data;

DESCRIPTION

Using this module you can parse a simple text csv file with header field.

METHODS

new

        my $obj = Text::CSV::Basic->new('filename','field_sep');

Construct a new parser. This takes two parameters csv filename and field seperator. Both parameters are mandatory.

getfield

        my @data = $obj->getfield('fieldname');

Returns a list of data.

AUTHOR

Praveen Kumar

BUGS and QUERIES

Please direct all correspondence regarding this module to: bug-Text-CSV-Basic@rt.cpan.org

COPYRIGHT AND LICENSE

  Copyright (C) 2010 Praveen Kumar.

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License; either version
  2 of the License, or (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.