Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Hi gurus,

I'm afraid I don't know a lot about what I'm doing with Perl/CPAN, but essentially, I've got an old Cent5 box that is running perl5.8.8, and I need to install some modules to it, so I can move an existing program to it.

The module I'm trying to install is File::Basename. When I run cpan File::Basename, I get:

The most recent version "2.85" of the module "File::Basename" is part of the perl-5.28.0 distribution. To install that, you need to +run force install File::Basename --or-- install X/XS/XSAWYERX/perl-5.28.0.tar.gz CPAN: Time::HiRes loaded ok (v1.9717)

Now, if I understand the problem (unlikely), it's that CPAN automatically looks for the newest version of any module, rather than the newest module for my current perl. How can I install a version of this module for my current perl, 5.8.8? Or, am I misunderstanding the issue?

I tried using the suggested `force install` command, which seems to have installed perl5.28.0 alongside my existing stuff.

I've tried searching for solutions to this, but it's hard to know what to search for; I get a lot of results for checking version numbers, etc., but nothing that I can find is about installing old modules into older perl versions.

Can someone straighten me out on this, please, and help me learn how to do this properly?

Thanks, Benjamin.


In reply to Installing modules in old version of perl by JediWombat

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-03-29 09:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found