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


batch-marc-tt - script to process a MARC file with Template::Toolkit


batch-marc-tt -i records.mrc -t -o output.html


This script will run a MARC file through MARC::Batch and pass the results to a Template::Toolkit template for processing, presumably with Template::Plugin::MARC. The MARC::Record objects are passed in in a T::T variable named "marcrecords".


--input, -i

The MARC file(s) to process.

--output, -o

The file to write the output to. If no output file is specified, the results will be written to STDOUT.

--template, -t

The template to use for processing the records. If no template is specified, a default template that pretty-prints the MARC.

--verbose, -v

Report the progress of the script.


Print a brief help message and exit.


Prints the manual page and exit.

--xml, -x

Load the input as MARCXML.


Specifies which MARC format MARCXML should be interpreted as (USMARC/MARC21, UNIMARC, or UNIMARCAUTH).




Jared Camins-Esakov, C & P Bibliography Services <>


Copyright (C) 2012 by C & P Bibliography Services

Template::Plugin::MARC 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, either version 3 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. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <>.