loveperl0721 has asked for the wisdom of the Perl Monks concerning the following question:

Using the code below on ActivePerl Win32 5.8.9 (and no, I cannot upgrade), generates the error message 'Win32 version 0.27 required--this is only version 0.26 at C:/Perl/lib/Cwd.pm line 692.' at run time. I checked ppm and found that Win32 is at version 0.39. The module which raises the error is Cwd.pm. How best do I resolve this issue given the perl installation constraint?
use strict; use warnings; use File::Find; my $in_dir="M:\\DB_Backups"; my $num_days=30; my $rc=""; sub select_files { my $input_file=$_; if (-d $input_file ) { return; } my $full_path=$File::Find::name; } $File::Find::prune=0; find(\&select_files, $in_dir);

Replies are listed 'Best First'.
Re: Win32 version error
by ikegami (Patriarch) on Nov 09, 2010 at 19:24 UTC
    ...or are you saying you have version 0.39 installed? If so, you also have a version earlier than 0.27 installed in another directory, and that directory is present earlier in @INC. Remove the pre 0.27 version, or adjust @INC to find to compensate.
      Yes, I already have version 0.39 installed. Thanks for wisdom on finding and removing older version.
Re: Win32 version error
by ikegami (Patriarch) on Nov 09, 2010 at 19:19 UTC

    Seems pretty straightforward to me: Install Win32 version 0.27 or higher. What's the problem?