Hi, I am trying to get all the unique header files in cwd and push it to an array.Can anyone advise how can I do that?
my $cwd = getcwd(); my %seen; find(sub { push @headers , $_=~ /\*\.h/ if -f $File::Find::name && !$seen{$_} +++; }, $cwd);
In reply to Putting all the files in an array by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |