Yes I read readdir, I'm assuming "file testing the return values out of a readdir" is my case of why I can't use it?
I used glob like you said. No more errors, but I get no output to STDOUT. I placed "print "$file\n" at the end of my first for loop and I see the files are being iterated through, but the guts of the script where I'm trying to find names and object-groups is not showing any output.