| Text-RecordParser documentation | Contained in the Text-RecordParser distribution. |
Text::RecordParser::Tab - read tab-delimited files
use Text::RecordParser::Tab;
This module is a shortcut for getting a tab-delimited parser.
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",
);
Ken Youens-Clark <kclark@cpan.org>
Copyright (C) 2006-10 Ken Youens-Clark. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2.
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. See the GNU General Public License for more details.
| 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__ # ----------------------------------------------------------------