Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Obtaining newer version of a module now only in perl distribution

by parv (Priest)
on Feb 05, 2013 at 10:42 UTC ( #1017117=perlquestion: print w/ replies, xml ) Need Help??
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
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/ from

    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

    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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1017117]
Front-paged by Corion
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2014-08-21 22:48 GMT
Find Nodes?
    Voting Booth?

    The best computer themed movie is:

    Results (144 votes), past polls