Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1041997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:26:16+00:00 2026-05-16T15:26:16+00:00

Lot’s of ways to set your modules $VERSION in perl, some even have advantages.

  • 0

Lot’s of ways to set your modules $VERSION in perl, some even have advantages. What I don’t know is why we do it? I mean the META.yml has a version… which is what cpan uses? so why do we set it in the module? what’s the point?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T15:26:17+00:00Added an answer on May 16, 2026 at 3:26 pm

    So you can say

    use Module::Name 4.5.6;
    

    And the code will fail if you don’t have at least version 4.5.6 of Module::Name installed.

    It is also helpful when you need to know what version is installed, you can just say:

    perl -MScalar::Util=99999999999999
    

    This is roughly equivalent to

    #!/usr/bin/perl
    
    use Scalar::Util 99999999999999;
    

    It will fail (becuase Scalar::Util is nowhere near version 99999999999999) and tell you the version number. In my case it says:

    Scalar::Util version v.Inf required--this is only version 1.22 at
    /Users/cowens/apps/perlbrew/perls/perl-5.12.1/lib/5.12.1/Exporter/Heavy.pm
    line 120.
    BEGIN failed--compilation aborted.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A lot of you have starting to write programs since college or even earlier.
A lot of the time I will have a Business object that has a
A lot of newer sites have neat-o sign up forms. I do c++/java dev,
A lot of items I've found so far have been a bit vague or
A lot of people seem to have an opinion about which is better. I'm
A lot of the collection classes in .Net (i.e., List<T>, Dictionary<TKey, TValue>) have an
A lot of modules I use import entire files into memory or trickle a
A lot of OS projects I know (I am PHP developer) uses versions as
Lot of libraries i have seen methods defined like this Common.deepCopy = Common.deepCopy ||
A lot of my pages have amll bits of jquery. Im thinking of putting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.