in reply to Putting all the files in an array
Or use File::Spec if you need another directory's filesmy @headers = glob '*.h'; print "@headers\n";
use File::Spec; my @headers = glob File::Spec->catfile($dir, '*.h'); print "@headers\n";
- Miller
Update: Oh, unique means recursive? Well in that case I would've done the method Eliya suggested, although Anonymous's looks good too.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Putting all the files in an array
by Anonymous Monk on Mar 20, 2011 at 00:27 UTC | |
|
Re^2: Putting all the files in an array
by Anonymous Monk on Mar 20, 2011 at 00:21 UTC |