As you said "unique header files in cwd" I suppose you mean recursively, starting from the cwd (as filenames are always unique per directory).
use File::Find; my @headers; my %seen; find(sub { push @headers, $_ if -f && /\.h$/ && !$seen{$_}++; }, ".");
In reply to Re: Putting all the files in an array
by Eliya
in thread Putting all the files in an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |