gugod/App-perlbrew — pull request #203 by matzsoft (2012-04-21 03:45:50+00:00)
Title: Ported the bashrc functionality into cshrc.

In perlbrew version 0.42, if your login shell is csh or a derivative the perlbrew use and perlbrew switch commands don't work as advertised. Instead they create a sub-shell using the specified perl version but once you exit that sub-shell (or even open a new shell when you did perlbrew switch) you are back to the system perl. So what I did is convert the cshrc file into a csh translation of the bashrc file which does so much of the work of perlbrew's switch, use, off, and switch-off commands.

1. Added 3 new files to $PERLBREW_ROOT/etc on perlbrew init.
a. csh_wrapper
b. csh_reinit
c. csh_set_path
2. Modified cshrc
a. Now uses csh_set_path
b. Defines an alias for perlbrew that references csh_wrapper
3. Updated tests
a. installation-perlbrew-t now checks for the 3 new files.