C.DeRykus wrote: > One option is an outer enclosing block that'll extend the scope of $name to that entire block: Jim Gibson wrote: > Declare the variable just before the loop, and remove the 'my' from the foreach statement: Thanks for the responses. I was able to get it to work. MarcThread Previous | Thread Next