Created
          April 21, 2022 14:37 
        
      - 
      
- 
        Save davorg/da13a9603bc3b0a1521ab70dbe04865f to your computer and use it in GitHub Desktop. 
    Bash function to get Perl module versions
  
        
  
    
      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
    
  
  
    
  | function cpanver { | |
| for mod in "$@" | |
| do | |
| perl -M$mod -E"say qq[$mod - \$$mod::VERSION]" | |
| done | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment