in reply to Use of uninitialized value in pattern match (m//)

What is the value of $componentName, and what are the values of %component_path? The error message suggests that $component_path{ $componentName } is uninitialized, which likely means that the value of $componentName is not what you expect it to be.

I recommend printing out the value of $componentName.