Yes, messing with the system perl can result in an unstable machine. If you took a backup before doing this, now is the time to restore. If not, consider this an unfortunate lesson. Backups are a good idea.
The first thing I'd suggest would be to go down the Disk Utilities -> Repair routine, let the system determine what permissions things should have, and reassign them accordingly. If that does not work I'd suggest looking at using Pacifist and restoring these files:
"This is useful, for instance, if an application which is installed by the operating system becomes damaged and needs to be reinstalled without the hassle of reinstalling all of Mac OS X"
For future reference the XCode alternative I mention can be found here.
Update: To address your questions in the CB regarding the installation of your own Perl elsewhere on the system (which is a good idea), http://perlbrew.pl removes some effort in installing and maintaining Perl (or multiple Perls) on your system. It can also be used to automate testing your code against multiple versions of Perl. That said, the README has an explanation of the 3 lines required to install Perl to a path of your choice. See also INSTALL.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||