Photovoltaic (PV) arrays have been recognized as one of the main clean renewable sources of electrical energy. In practice, PV arrays are subject to unavoidable non-uniform partial shading (PS) due to clouds, buildings, dust, etc. PS causes the hot spot problem, mismatch losses, and output power degradation. A widely used approach to mitigate the effect of PS is dynamic reconfiguration, where, the interconnection of PV panels is modified according to the shading condition to achieve maximum output. Dynamic reconfiguration techniques use sensors, a programmable controller, and a switch matrix for optimal operation. However, they have drawbacks such as system complexity and scalability issues. For instance, reducing the number of switches limits the flexibility of the reconfiguration algorithm. In this paper, an automatic dynamic reconfiguration scheme is proposed in which PV panel irradiation activity controls the interconnection of switches, without the need for a programmable controller. A modular building block is proposed from which easily scalable PV arrays can be constructed in a hierarchical manner. Experimental and analytic results have verified the effectiveness of the proposed reconfiguration scheme.