Skip to content

Cuts down on the perl Record.pm warnings#4

Open
bmagic007 wants to merge 1 commit intogmcharlt:masterfrom
bmagic007:squelch_Record_uninitialized_variable_noise
Open

Cuts down on the perl Record.pm warnings#4
bmagic007 wants to merge 1 commit intogmcharlt:masterfrom
bmagic007:squelch_Record_uninitialized_variable_noise

Conversation

@bmagic007
Copy link
Copy Markdown

Cuts down on the perl warnings when an undefined value makes it's way into the field sub.

Tested on 120k bibs for a migration. Tested before/after and found that the result was identical but with the patch, much less noise!

This is the error message without the patch:

Use of uninitialized value $tag in hash element at /usr/share/perl5/MARC/Record.pm line 202.
(repeated thousands of times, flooding the standard output)

Cuts down on the perl warnings when an undefined value makes it's way into the field sub.

Tested on 120k bibs for a migration. Tested before/after and found that the result was identical but with the patch, much less noise!
@bmagic007
Copy link
Copy Markdown
Author

Galen,

Just wondering if the PR made it's way to you. I dove back into Record.pm again today to figure out why I was getting all those warnings. Implemented a solution. Then decided to contribute the fix only to find that previous-me already did the same thing 6 months ago.

-Blake-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant