in reply to How to create the varibles with the file names

I assume this is what you want:

@filenames=</data/*.txt>

Just a note, simple questions like this are probably better asked in the Chatterbox (of course you need to log in for that).


Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -- Brian W. Kernighan