in reply to list of fles in a directory, but use wildcards like *

You want the glob operator:

my @files = <onlythese*.txt>;

Not to be confused with the readline operator.

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

Note: All code is untested, unless otherwise stated