Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re^2: Machine-readable Current Version

by roho (Canon)
on May 14, 2017 at 18:08 UTC ( #1190274=note: print w/replies, xml ) Need Help??

in reply to Re: Machine-readable Current Version
in thread Machine-readable Current Version

I wanted to try the MetaCPAN::Client module so I ran cpanm and installed it. That was when I realized how many dependencies it has! This module and its dependencies consumed over 16MB of disk space and took over an hour to install. Please understand I have nothing against this module. I know it has many useful features and I realize these dependencies are needed for it to do all the things it does, but in my opinion it is a bit of overkill just to see the version number. You may want to consider using the $^V system variable to get the current version:
#!/usr/bin/perl use strict; use warnings; my $version = $^V; print "$version\n";
Produces the following output: v5.24.1

"Its not how hard you work, its how much you get done."

Replies are listed 'Best First'.
Re^3: Machine-readable Current Version
by afoken (Canon) on May 14, 2017 at 19:14 UTC
    You may want to consider using the $^V system variable to get the current version

    Um, yes, but ...

    ... it returns the version of perl you are currently running, which might be very different from the most recently released Perl. Quoting the original posting:

    is there a site/URL that can be scraped to find what the most recent release is?


    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

      Yep. My plan is basically to write a prove script that compares the two, and the result gets fed to a web dashboard as a 'pass/fail'.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1190274]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2019-12-14 18:31 GMT
Find Nodes?
    Voting Booth?

    No recent polls found