On Sat, May 21, 2011 at 04:10:49PM -0500, Mike Barrett wrote: > When I run the code below, it works fine for a couple thousand MARC records, > then starts this: > str outside of string at C:/Perl64/lib/bytes_heavy.pl line 11. > of uninitialized value in integer eq (==) at > C:/Perl64/site/lib/MARC/File/USMARC.pm line 175. > of uninitialized value $tagdata in substr at > C:/Perl64/site/lib/MARC/File/USMARC.pm line 178. > str outside of string at C:/Perl64/lib/bytes_heavy.pl line 11.
Are those the exact error messages? > It does that a few dozen times, then finally dies with: > str outside of string at C:/Perl64/lib/bytes_heavy.pl line 11. > of uninitialized value in integer eq (==) at > C:/Perl64/site/lib/MARC/File/USMARC.pm line 175. > of uninitialized value $tagdata in substr at > C:/Perl64/site/lib/MARC/File/USMARC.pm line 178. > of uninitialized value $tagdata in split at > C:/Perl64/site/lib/MARC/File/USMARC.pm line 195. > of uninitialized value $indicators in concatenation (.) or string at > C:/Perl64/site/lib/MARC/File/USMARC.pm line 200. > 't call method "as_string" on an undefined value at getsomefields.pl line > 25. Sorry, I can't help with the Perl code, but it sounds to me like a bad record. > Here's the record it appears to have choked on while pulling the 245: Could you please repost the record as an attachment? Paul. -- Paul Hoffman <nkui...@nkuitse.com>