Skip to content

Instantly share code, notes, and snippets.

@samyk
Created December 30, 2016 07:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samyk/d37f153ce103b235b238c93f006f0c27 to your computer and use it in GitHub Desktop.
Save samyk/d37f153ce103b235b238c93f006f0c27 to your computer and use it in GitHub Desktop.
print version numbers for all perl packages
# add to top of perl program to print version numbers for perl packages
use Data::Dumper;
print "$_\n" for grep { /:: \d/ } map { "$_ " . eval "\$${_}VERSION" } grep { /::$/ } keys %{"main::"};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment