in reply to Re^2: export variable outside foreach
in thread export variable outside foreach

Is that a question? :D Fix your typo, copy the varible name, ctrl+f, paste variable name, enter, find the typo, fix it