I have a problem, I can get the code to work all by itself, but if I make it a sub and pass in args for the zip file and destination it has an error: "Can't call method "members" on an undefined value at ./actionScript.pl line 1341"
line 1341 if the foreach loop.