http://www.perlmonks.org?node_id=1017117

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

Query is how to obtain (or what to do about) a newer version of module that is now available only in perl. Short of update of perl, there is no other supported|maintained way to obtain a newer version of a module. Then the only way is to extract the files from perl distribution?.

In particular, the module is File::stat. Currently installed version is less than 1.02 which lacks -X function overloading (perl is 5.8.x). The updated version, 1.02+, of the module is not available separately on CPAN, or I failed to find one. In this case of my grep|ack like program, I dispensed with the module & thus any related caching benefits; reverted to built-in -X functions, giving them file paths instead of File::stat object. (For completeness sake I will add that the module seems to be in pure perl and the sole file could possibly be copied to achieve module upgrade, passing on any niceties of a formal upgrade. Also, I thought BSD::stat might be able to replace File::stat but then I additionally need the module to work at least on a GNU/Linux system (and possibly Cygwin).)

  • Comment on Obtaining newer version of a module now only in perl distribution

Replies are listed 'Best First'.
Re: Obtaining newer version of a module now only in perl distribution (perlbug)
by Anonymous Monk on Feb 05, 2013 at 10:56 UTC

    That is a common perlbug, so you should perlbug it, many don't -- if enough people perlbug-it, maybe one of the perl5porters will take it upon himself to release an official dual-lived File::stat

    In the meantime, you don't have to download a whole perl, you can just grab File/stat.pm from http://perl5.git.perl.org/perl.git/tree?f=lib/File

    Might want to grab some .t also :)

Re: Obtaining newer version of a module now only in perl distribution
by Bloodnok (Vicar) on Feb 05, 2013 at 16:37 UTC
    Hmmm,

    Maybe it's me, but perl -MCPAN -e 'install "File::Stat"' works for me, however perl -MCPAN -e 'install "File::stat"' doesn't. Have you tried the workarounds that CPAN shell suggests i.e. use the force flag ?

    A user level that continues to overstate my experience :-))
      OP has File::stat module, with lowercase "s". Different enough animals they are with superficial resemblance.
        I am sorry, Bloodnok, for the nonsensical reply because it is I who confused "stat" & "Stat", not you.