my @files = File::Find::Rule->file() ->name(qr/^.{36}\.txt$/) ->maxdepth(1) ->in("G:/Perl_program/Input"); my @tags = map { /(.{36})\.txt$/ ? $1 : undef } @files;
In reply to Re: How do I read files in a directory and not directories?
by davidrw
in thread How do I read files in a directory and not directories?
by Win
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |