Created
December 30, 2016 07:55
-
-
Save samyk/d37f153ce103b235b238c93f006f0c27 to your computer and use it in GitHub Desktop.
print version numbers for all perl packages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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