NAME
Text::CSV::DetectSeparator - Helps to find the fieldseparator in a csv-file
SYNOPSIS
use Text::CSV::DetectSeparator;
my $file = 'test.csv';
my $detector = Text::CSV::DetectSeparator->new($file);
print $detector->separator();
DESCRIPTION
Text::CSV::DetectSeparator
is written to automate the detection of the fieldseparators in CSV-files. It just test, whether one of these characters is the seperator: , ; . : #
METHODS
new([$file])
my $obj = Text::CSV::DetectSeparator->new()
creates a new Text::CSV::DetectSeparator
object and searchs for the separator if a filename is given.
file($filename)
Searchs for the separator if a filename is given
separator ()
Returns the separator or undef if the search fails (e.g. two or more possible separators).
PREREQUESITS
Text::CSV_XS
Tie::File
File::Type
AUTHOR
Renee Baecker, <module@renee-baecker.de>
COPYRIGHT AND LICENSE
Copyright (C) 2005 by Renee Baecker
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.6.1 or, at your option, any later version of Perl 5 you may have available.