How can I manage Perl module dependencies?

前端 未结 7 1932
长发绾君心
长发绾君心 2020-12-25 08:31

I\'m currently in a project which develops using a framework developed by another department as the base. We are currently introducing quality standards (at last, yay!) in o

相关标签:
7条回答
  • 2020-12-25 09:06

    If you want to check version of external modules, you could (if at least they report their $VERSION properly) use something like this :

    BEGIN {
        use foo;
        use bar;
    
        die "Ghaaaa" if $foo::VERSION < 2.1;
        die "Aaaargh" if $foo::VERSION > 3.12;
    }
    
    0 讨论(0)
提交回复
热议问题