> You can set the correct encoding succinctly on opening files
> e.g. open my $fh, '>:encoding(UTF-8)', $outfile
You might also see this even more succinct variant:
open my $fh, '>:utf8', $outfile
though technically speaking, that will not give you guaranteed conformant UTF-8
because it could
The copyright symbol is not one of the characters for which there are two
representations.
One thing that can confuse people about Unicode is the distinction between the
“code point”[1] and the representation of the code point in the various Unicode
transformation formats such as UTF-8,
> However, combining Jon Gorman's recommendation with some Googling, I get:
>
> my $outfile='4788022.edited.bib';
> open (my $output_marc, '>', $outfile) or die "Couldn't open file $!" ;
> binmode($output_marc, ':utf8');
>
> The open statement may not be quite correct, as I am not familiar with
On Wed, Nov 19, 2014 at 02:19:26PM +, PHILLIPS M.E. wrote:
open (MAIL, |-, '/bin/mailx', '-s', $subject, @addresses)
|| die Failed to e-mail report: $!\n;
what's the point of using perl then?
There's more than one way to do it.
If mailx is already installed and configured
You also could consider to grok Jason Thomale's Interpreting MARC:
Where's the Bibliographic Data? http://journal.code4lib.org/articles/3832
That's a very good article, as it highlights the problems of the prescribed
punctuation both getting in the way of extracting parts of the data and its
-Original Message-
From: Shelley Doljack [mailto:sdolj...@stanford.edu]
Sent: 31 July 2012 20:18
The problem was I wasn't telling perl to output UTF-8. Now that I added
binmode(FILE, ':utf8') to my script, the problem is fixed. However, it sounds
like once I set binmode to UTF-8
I have to admit my Perl skill is very limited, so this may be a dumb
question,
but I can't seem to find answer. When I use MARC::Batch to read
records from
our catalog (III) export file, I can't seem to find a way to skip an
error
record. When I ran the following against an III export MARC