$editor = "no editor" if $record->{'services'}[0]{'class'} && $rec
+ord->{'services'}[0]{'class'} eq 'Primary';
The warnings go away, but the odd results still are present. I don't lightly ignore warnings in Perl; in this instance I knew that the warning were not pointing to the problem.
As I said, the warnings are not present in my full code, but I was narrowing down the code to smallest snippet possible to reproduce the error.
Interestingly, I often am able to solve many questions I have by doing just such an exercise. Many times I've thought to seek the wisdom of the monks, only to figure out the answer while minimizing my code. I'm sure I'm not the only one. |