The variable @columns_import is only declared within your 1..$scheduled_export_days loop and will be initialized anew on every trip through that loop.
A different variable of the same name is used outside of that loop.
Either you are not using the strict pragma, which would have alerted you to the situation of an undeclared variable being used, or you have declared the variable in two places.
In reply to Re: Overwriting Hash / Array
by Corion
in thread Overwriting Hash / Array
by iRemix94
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |