in reply to Is there a better way to get all the t/.t test files an array?
To simply grab a list of filenames that match some expression within a directory, just use glob:
sub get_files { chdir( $_[0] ); return glob( $_[1] ); }
Usage:
my( @files ) = get_files( '/path/to/files', '*.t' );
This will change your current working directory.
Dave
|
|---|