http://www.perlmonks.org?node_id=1096664


in reply to Re^2: perlbrew and cpan
in thread perlbrew and cpan

You can fix the file ownership as follows:

sudo chown -R $USER "${PERLBREW_ROOT:-$HOME/perl5/perlbrew}"

The following fixes the group too, assuming the group name should be the same as your user name:

sudo chown -R $USER:$USER "${PERLBREW_ROOT:-$HOME/perl5/perlbrew}"

You didn't say how you messed up your system perl, so I can't offer any advice on how to fix it.