in reply to Use of uninitialized value in pattern match (m//)

File::Find might make some of your logic unnecessary...
  • Comment on Re: Use of uninitialized value in pattern match (m//)

Replies are listed 'Best First'.
Re^2: Use of uninitialized value in pattern match (m//)
by chris01010 (Novice) on Mar 18, 2015 at 12:45 UTC
    Thanks jellisii2, I'll have a read.

      File::Find::Rule is a much neater interface to File::Find :)

      use File::Find::Rule qw/ find rule /; my @files = find( file => name => 'OT', maxdepth => 1, in => $trans_dir, );
      now @files contains "$trans_dir/OTfile1" ...