@@ -, +, @@ C4/Record.pm --- C4/Record.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/C4/Record.pm +++ a/C4/Record.pm @@ -378,7 +378,7 @@ sub marc2csv { } # Preprocessing - eval $preprocess if ($preprocess); + eval {$preprocess} if ($preprocess); my $firstpass = 1; if ( @$itemnumbers ) { @@ -395,7 +395,7 @@ sub marc2csv { } # Postprocessing - eval $postprocess if ($postprocess); + eval {$postprocess} if ($postprocess); return $output; } @@ -553,7 +553,7 @@ sub marcrecord2csv { } # Field processing - eval $fieldprocessing if ($fieldprocessing); + eval {$fieldprocessing} if ($fieldprocessing); push @valuesarray, $value; } --