Re: MARC-perl: different versions yield different results

[email protected] (Ed Summers)
Newsgroups perl.perl4lib
Message-ID <[email protected]>
On Mon, Oct 11, 2010 at 3:03 PM, Al <[email protected]> wrote:
> The problem is my record batches are a mixture of UTF8 and MARC8 and explicitly
> setting binmode screws things up. I need a solution that transparently
> handles a mix of record encodings.

Hmm, yeah the idea w/ MARC::Record v2.x was that binmode would be
used. It looks like you can add 'use bytes' to your program and things
will
work as well.

  use bytes;
  use MARC::Batch;
  my $batch = new MARC::Batch('USMARC', $ARGV[0]);
  $batch->strict_off ();
  $batch->warnings_off ();
  my $record = $batch->next;
  print $record->as_usmarc;

Does that "screw things up" for you in a similar way that binmode on
the filehandle does? What does "screw things up" actually mean?

//Ed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.