Ppm conversion to curl on a module install

Hello,

I have a shell script named update.sh that has this:

@echo off
set ip=%1
ppm install --force https://%ip%/api/dist/ppm/richard.ppd

I used to run it like this when I used activestate perl

./update.sh 100.100.100.100

it would connect to this IP inside my network and install it.

Now I switched to cpan using perl that came with my macbook and of course the script won't run.

how can I use the same script using cpan or curl to install it?

Thanks in advance

So am I correct in interpreting you requirement as you wish to have a local private CPAN mirror, and additionally would like to inject your own modules into the local repository?

If so this Private CPAN Distributions | Dr Dobb's may give you some ideas.

Hi, yes you are correct. So how would I command line it? or modify my shell script? is there a way to run this? The mod I want to install is on a device like I mentioned above.

would I run it as

curl -O -k https://100.100.100.100/api/dist/ppm/richard.ppd

I am new to this method of curl or cpan.