Perl Installed and then disappeared?

I followed the instructions to install the state tool and then to configure Perl. All was good, was able to run stuff. Then I wanted to add the Text-CSV module, so I did state install Text-CSV, and it wanted me to authenticate. I hadn’t actually made an account yet, so I followed the link and created an account, then I was able to verify successfully. Somehow, after doing this, perl is no longer found.

I tried installing Text-CSV again, hoping it would suggest what to do about the absence of Perl. It said this:

• Searching for packages in the ActiveState Catalog ✔ Found
• Resolving Dependencies x Failed
 x Could not plan build. Platform responded with:
  Failed to create build plan due to solve errors
  text-csv is unavailable.
  let.runtime.camel
  Because root depends on every version of Feature|language/perl|text-csv which doesn't match any versions, version
solving failed.

I tried uninstalling and I got this:

█ Uninstalling Package

Operating on project ActiveState/ActivePerl-5.28, located at C:\Users\xxx\ActivePerl-5.28.

• Updating requirements x Failed
 x The following package(s) could not be found in your project: perl

The uninstall command, in this context, is not doing what you expect. From the State Tool, uninstall will remove packages from the online master copy of the project. Since you are working with ActiveState/ActivePerl-5.28 from the ActiveState organization, you don’t have write permission to remove the Perl from the project, or to add Text-CSV to it. To change a project, fork a copy to your personal workspace, do your checkout from that, and then make content changes.

The command you probably want is “state clean cache” to remove your local copy of the project. State Clean will accept a number of options to limit the scope.

docs.activestate.com

Command Reference :: ActiveState Platform Documentation

Reference guide to the available commands in the State Tool and how to use them

Also the ‘disappearing’ happens because the State Tool creates a virtual environment. As soon as your current session ends, that virtual environment becomes unavailable. To get it back, change into the control directory for your project, and run “state shell”.
See command references above.