in reply to Bug in latest File::Util?

I am using Active State Perl and only have the version of File-Util that "works", 4.132140. I did verify that your code works with this version.
#!/usr/bin/perl use strict; use warnings; # Using Active State Perl 5.20.2 use File::Util; #version 4.132140 my $f = File::Util->new(); my @d = $f->list_dir("C:/test"); print join " ", @d, "\n"; __END__ . .. anothertestdir bar bar2
From test code and docs, this code does what is supposed to do (with no actual "simple file", returns the dot directories + others). If a later version of Util::File is throwing an internal error as your post indicates, then I would consider that a bug. Forcing installation of a "non-approved" AS repository module version is a mess that I really don't want to attempt.

Update: From looking at next responses, it does appear that this is a legit bug report and I would recommend proceeding with that.

Replies are listed 'Best First'.
Re^2: Bug in latest File::Util?
by Corion (Patriarch) on Jun 21, 2016 at 12:09 UTC

      Thanks, Corion. I'm not sure I follow--that test file still remains a part of the test suite. Nevertheless, an additional regression test was added to catch this failure condition, should it ever happen again. I appreciate your underscoring the importance of testing.

      Tommy
      A mistake can be valuable or costly, depending on how faithfully you pursue correction

        I interpreted the diff in the way that the test file still remains but the regression test was removed and the test count reduced from 26 to 25 tests. Maybe I'm wrong there, as I didn't actually run the test suite.

Re^2: Bug in latest File::Util?
by stevieb (Canon) on Jun 21, 2016 at 12:20 UTC

    Just verified that it's borked on Strawberry Perl 5.24.0, and a couple other versions. My original testing was on Linux Mint.