this is a perl place...so don't ask for a javascript answer. when perl is in strict mode it requires that all variable declerations either have explicit package names added OR they be prefixed with "my" keyword. Hence, adding "my " in front of all the first instances of those variable names will fix it.