in reply to Re^2: Appending $VERSION to package name in Makefile.PL
in thread Appending $VERSION to package name in Makefile.PL

The script is a network server, and I wanted the alternative ("staging") version to provide a new version of the service (perhaps on a different port) for the users to test, without disrupting the current (stable) service.

Use a layout like this:

bin/myscript.pl bin-testing/myscript.pl lib/My/Module.pm lib-testing/My/Module.pm

Then, to run the stable service:

perl -Ilib bin/myscript.pl --port=1234

And for the testing service:

perl -Ilib-testing bin-testing/myscript.pl --port=1235
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'