technique pour splitter les marc records

use strict;
use warnings;
use MARC::Record;
 
undef $/; 
 
for (split /\x1D/,<>) {
  my $r = MARC::Record->new( $_."\x1D");
  print $r->as_formatted; 
  die;
}

merci patron !

Poster un nouveau commentaire

Le contenu de ce champ ne sera pas montré publiquement.
  • You can use BBCode tags in the text.
  • Les lignes et les paragraphes vont à la ligne automatiquement.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]".

Plus d'informations sur les options de formatage