Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: "Use of uninitialized value in pattern match (m//)" warning, doing a grep on 2D array

by BillKSmith (Monsignor)
on Oct 15, 2022 at 15:28 UTC ( [id://11147446] : note . print w/replies, xml ) Need Help??


in reply to "Use of uninitialized value in pattern match (m//)" warning, doing a grep on 2D array

You have already received several good suggestions on how to suppress your warnings messages. I strongly suggest that you do not adopt any of them until you know what is causing the undefined data. It may be a symptom of a more serious problem. In that case, fixing the underlying problem would probably eliminate the warnings. Only hide the warnings if you know that the undefined data fields are valid and that your grep handles them properly. If you know that they are invalid and you cannot remove them sooner, use hippo's pre-filter (Re^3: "Use of uninitialized value in pattern match (m//)" warning, doing a grep on 2D array) to remove them.
Bill