Text::RecordParser::Tab - read tab-delimited files


Text-RecordParser documentation Contained in the Text-RecordParser distribution.

Index


Code Index:

NAME

Top

Text::RecordParser::Tab - read tab-delimited files

SYNOPSIS

Top

  use Text::RecordParser::Tab;

DESCRIPTION

Top

This module is a shortcut for getting a tab-delimited parser.

new

Call "new" as normal but without worrying about "field_separator" or "fs."

Because this:

  my $p = Text::RecordParser::Tab->new($file);

Is easier to type than this

  my $p = Text::RecordParser->new( 
      filename        => $file,
      field_separator => "\t",
  );

AUTHOR

Top

Ken Youens-Clark <kclark@cpan.org>

LICENSE AND COPYRIGHT

Top


Text-RecordParser documentation Contained in the Text-RecordParser distribution.

package Text::RecordParser::Tab;

use strict;
use warnings;
use version;

use base qw( Text::RecordParser );

our $VERSION = version->new('1.4.0');

# ----------------------------------------------------------------
sub new {
    my $class = shift;
    my $self  = $class->SUPER::new( @_ );

    $self->field_separator("\t");

    return $self;
}

1;

__END__

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