you didn't say what you expect your code to do, so it difficult to offer any useful suggestions, other than glob('sample*.txt')
Maybe my @files = glob (".* *") doesn't do what you think it does?
see glob
In reply to Re: get list of files matching part of file name
by RichardK
in thread get list of files matching part of file name
by doubledecker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |