Subject: | Warnings from get_phrases_in_text with undefined text_working_copy |
During the for loop in get_phrases_in_text, the variable $text_working_copy can be undefined resulting in two warnings at run time.
Here is a suggested patch for this issue:
https://github.com/atoomic/Text-Extract-MaketextCallPhrases/commit/369d7db1aed708027885202aa56f01430ffe722d
Note that I also suggest an alternate fix. The protection might be incomplete.
Note that the conext here comes from version 0.93, but same issue with version 0.94
Use of uninitialized value $text_working_copy in substitution (s///) at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Text/Extract/MaketextCallPhrases.pm line 131, <$fh> line 995.
Use of uninitialized value in subtraction (-) at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Text/Extract/MaketextCallPhrases.pm line 133, <$fh> line 995.