in reply to Problems with scoping

Credit goes to the 'die' statement and you have declared $files[0] there. Use of strict prompt the compiler to check the variable declaration before it is used. Replace $files[0] by any other variable and you will get the similar error.

artist