i am new to perl, i have a simple doubt,
can i change the length of the array while using foreach loop, and can i shift or push elements into the array?
if i shift the elements inside the array which element will the loop take for the next iteration, same way what is the case when i push?