Specify a file as the url in your cpanfile

j1n3l0

j1n3l0

Posted on August 27, 2020

Specify a file as the url in your cpanfile

Whilst it is not explicitly stated in the docs, you can specify a file path as the url for the dependency in a cpanfile:

requires "Module::Name",
  url => "file:///path/to/Module-Name-${VERSION}.tar.gz";

This can prove useful if (for example) you want to test local versions of your own modules and don't have or want a local CPAN mirror.

💖 💪 🙅 🚩
j1n3l0
j1n3l0

Posted on August 27, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related