I kept on getting permission errors when using "perl -MCPAN -e shell". You might want to try placing sudo before the commend. Example: "sudo perl -MCPAN -e shell"