I think I understand what I did! In trying to move my script to the perl PATH I thought /usr/bin/perl was a directory and not the actual perl. So I wrote something like:
cp my_script /usr/bin/perl
Thus removing my perl and placing my_script there instead. So I guess reinstalling ubuntu is the way to go then... | [reply] [d/l] |
| [reply] |
Thanks for the tip! I already made a new directory and added it to my $PATH to make sure this doesn't happen again.
| [reply] [d/l] |
Reinstalling the OS just because you lost a file? Just install the package. Or copy it from a live CD. Or another ubuntu installation. Or compile your own perl. Or, gasp, restore from backup.
| [reply] |
I think on Debian (and thus Ubuntu), apt-get and some other system-relevant programs still rely on /usr/bin/perl working. This would mean that installing any package likely won't work on that system.
I think that Debian plans/planned to remove the dependency on perl for apt-get, so maybe that will work in a recent version of Debian/Ubuntu. Restoring from backup would be the approach that's more likely to work.
| [reply] [d/l] [select] |