in reply to Is version a real module?

Yes, version is a real module, available from CPAN and included with the perl distribution starting in version 5.9.0.

If you are going to forgo using it, do not use a three-component version number; stick to a floating point number like '0.001'.

Replies are listed 'Best First'.
Re^2: Is version a real module?
by hesco (Deacon) on Dec 26, 2006 at 07:39 UTC
    So if I'm running version v5.8.4, what do I do with this? Is qv() a function of version.pm? Or is that a typo/bug? If I want to make my code compatible with older versions of perl, how would I adjust this code to run under my older version?

    Thanks
    -- Hugh

    if( $lal && $lol ) { $life++; }

      Is qv() a function of version.pm? Or is that a typo/bug?

      qv is a function exported by version.

      If I want to make my code compatible with older versions of perl

      It already is. Just install the module.

      The version module is available on CPAN, and should work with perl versions 5.005_04 or later. The Makefile.PL/META.yml created should list it as a prerequisite of your distribution. If you installed Module::Starter::PBP, you should have had a demonstration of how easy it is to install it as a prereq.

      Personally, I don't know that I'd consider it a best practice to use, especially with extended versions, but PBP is Damian's best practices, not mine.