RE: MARC::Field->subfields function

2010-09-09 Thread Gorman, Jon
And what field are you pulling? Does it have subfields? Are you sure you're using the same variable? Seeing more of your code might make it easier to guess. Not all marc fields have to have subfields. Not sure what MARC::Field returns if it does not have any. If it returns undefined, that

RE: MARC blob to MARC::Record object

2011-01-07 Thread Gorman, Jon
> How do I make the MARC blob into a MARC::Record object (without having > to first save it a file and read it in with MARC::File/Batch)? The > MARC blob is already in a variable, so it doesn't make sense (to me) to > write it out to a file just so I can read it back in. Unless I have > to, nat

RE: Turning string into MARC record

2012-08-02 Thread Gorman, Jon
No need to use MARC::Batch in this case, just use the new_from_usmarc method in MARC::Record my $record = MARC::Record->new_from_usmarc( $record_string ) ; Jon Gorman University of Illinois > -Original Message- > From: arvinport...@lycos.com [mailto:arvinport...@lycos.com] > Sent: Thur

RE: RE: Turning string into MARC record

2012-08-02 Thread Gorman, Jon
it bounces the message. Well, at least you got the mail ;). Jon G. > -Original Message- > From: arvinport...@lycos.com [mailto:arvinport...@lycos.com] > Sent: Thursday, August 02, 2012 12:30 PM > To: Gorman, Jon > Cc: perl4lib@perl.org > Subject: Re: RE: Turning st

RE: send emails via perl

2014-11-19 Thread Gorman, Jon
In the past I've also done it without using a module by just doing a very bare bones Net::SMTP session if I remember right. That's included in perl in most recent versions if I remember right. (I'd have to dig around to find where I've used it, it's rare as in most cases I prefer the approach