
convert.pl - a sample MARC::Detrans driver

convert.pl --config=options.xml --in=marc.dat --out=new.dat

This is a sample script that illustrates how to use MARC::Detrans for detransliterating MARC records. It was customized mainly for its first user (Queens Borough Public Library) so you may want to change stuff in here. Most of what you'll find is code to enable logging, MARC::Detrans takes care of the actual detransliteration in a few lines of code.

The location of the XML config file.
The location of the MARC input file.
The location to write out the new records. If unspecified log messages will be sent to STDOUT.
Optional parameter to log messages to a file rather than the screen.