in reply to read the whole folder files

Nevermind! I fixed it! Thank you so much!

Replies are listed 'Best First'.
Re^2: read the whole folder files
by Anonymous Monk on Apr 10, 2012 at 00:11 UTC

    findrule /Users/My_folder/electrical_records -file -name '_*_.txt' -maxdepth 1

    use File::Find::Rule; ## GLOB my @files = find( file => maxdepth => 1, name => '_*_.txt', in => $dir +ectory ); ## REGEX my @files = find( file => maxdepth => 1, name => qr/_.+?_\.txt$/, in = +> $directory ); ## verbose my @files = File::Find::Rule->file() ->maxdepth(1) # do not recurse ->name( '_*_.txt', ) ->in( $directory ); ...