zoukankan      html  css  js  c++  java
  • 使用Perl生成usmarc记录 zhumao

    #!/usr/bin/perl

    ## create a MARC::Record object.
    use MARC::Record;
    my $record = MARC::Record->new();

    ## add the leader to the record. optional.
    $record->leader('00903pam   2200265 a 4500');

    ## create an author field.
    my $author = MARC::Field->new('100',1,'',a => 'Logan, Robert K.',d => '1939-');
    ## create a title field.
    my $title = MARC::Field->new('245','1','4',a => 'The alphabet effect /',c => 'Robert K. Logan.');
    $record->append_fields($author, $title);
    ## open a filehandle to write to 'record.dat'.
    open(OUTPUT, '> record.dat') or die $!;
    print OUTPUT $record->as_usmarc();
    close(OUTPUT);

  • 相关阅读:
    X
    W
    J
    A
    Q
    P
    B
    排列和组合的求解
    深度学习之序列处理
    32位和64位数据类型大小对比
  • 原文地址:https://www.cnblogs.com/zhumao/p/212901.html
Copyright © 2011-2022 走看看