I'm not sure what you're seeing that makes it look like this only gets a specific file? I mean that in an honest manner - there is something in my untested code that made you ask this question, and I'd like to know what it is. On one hand, it could be the key to helping you understand, on the other hand, it could be a blatant error in my untested code.
| [reply] |
Well my text file is blank. Im running it on the unix server so it doesnt have any modules. Is this a module I will have to download or would it come with the perl package that comes with the Unix OS? Thanks again...
| [reply] |
A couple of items: a) I said it was untested. Which means it could have bugs. It's sorta like saying, "fixing this to work in your situation is left as an excersise for the reader."
b) you probably should be using strict and warnings. You'd see evidence of problems and be asking different questions instead.
c) you should be using File::Find, too, if you aren't already (you're not showing your new code with the new problems, so you might be doing this already).
d) see the correction above to the case. I'll leave the rest as an excersise for the reader.
| [reply] |