NAME
Catmandu::Importer::RIS - a RIS importer
SYNOPSIS
Command line interface:
catmandu convert RIS < input.txt
In Perl code:
use Catmandu::Importer::RIS;
my $importer = Catmandu::Importer::RIS->new(file => "/foo/bar.txt");
my $n = $importer->each(sub {
my $hashref = $_[0];
# ...
});
CONFIGURATION
- sep_char
-
Default is to the regex '\s\s-\s' but sometimes you see RIS like files with other separator, e.g "TY Foo" instead of "TY - Foo".
METHODS
new(file => $filename, fh => $fh , fix => [...])
Create a new RIS importer for $filename. Use STDIN when no filename is given.
The constructor inherits the fix parameter from Catmandu::Fixable. When given, then any fix or fix script will be applied to imported items.
count
each(&callback)
...
Every Catmandu::Importer is a Catmandu::Iterable all its methods are inherited.