Can a Perl script install its own CPAN dependencies?

后端 未结 2 2010
挽巷
挽巷 2020-12-03 03:38

I have a Perl script that has two dependencies that exist in CPAN. What I\'d like to do is have the script itself prompt the user to install the necessary dependenc

2条回答
  •  醉酒成梦
    2020-12-03 03:54

    You can probably just execute this from inside your script.

    perl -MCPAN -e 'install MyModule::MyDepends'

提交回复
热议问题