Re: Converting XML to MARC without reading a file?

2018-04-18 Thread Bruce Van Allen
On 4/18/18 at 5:25 PM, akohler...@gmail.com (Andy Kohler) wrote: Do I have to write the XML to a file, then read it in again to convert it? Or am I just missing something obvious? Perl lets you open a reference to a scalar variable as a file. #!/usr/bin/perl use strict; use warnings; my $st

Re: dereferencing an array - Pt 2

2006-02-10 Thread Bruce Van Allen
My previous message got kinda long, so here's some tested Perl that does just what Eric's last message asked for: #!/usr/bin/perl -w use strict; my %facets = ( 'tools' => { 'dictionaries' => { 'websters' => 'http://websters.com', 'oxford' => 'http://oxford.edu'

Re: dereferencing an array

2006-02-10 Thread Bruce Van Allen
On 2/10/06 Eric Lease Morgan wrote: >On Feb 10, 2006, at 3:51 PM, Jonathan Gorman wrote: >>> How do I loop through a reference to an array? >>> >>> I have the following data structure: >>> >>> my %facets = ( >>>'audiences' => [('freshman', 'senior')], >>>'subjects' => [('music', 'history'

Re: MARC::Record ordering of fields

2005-05-14 Thread Bruce Van Allen
On 5/14/05 Leif Andersson wrote: >It is funny, I started with a Schwartzian transform, but thought to >myself "why not simplify the code?". Not realizing it is a performance >gain. I have always thought of it only as a means to do more >complicated sorts. >... >Funny, once more, is that one member

Re: perl4lib@perl.org

2003-06-21 Thread Bruce Van Allen
On Saturday, June 21, 2003 Ed Summers wrote: >This is the first perl4lib message being sent through the ezmlm [1] list >management software at perl.org. ezmlm works slightly differently from the >previous list management software at Rice since all the commands are sent via >the email address. > >