See Appendix A, Exercise Answers for answers.
Be careful to test this program in a mostly empty directory so you don't accidentally delete useful stuff! Remember that the command-line arguments are available in the
@ARGV array when the program starts.
Write a program that works like mv, renaming the first command-line argument to the second command-line argument. (You don't need to handle any options of mv, or more than two arguments.) You may wish to consider how to handle the rename when the destination is a directory.
If you have symlinks, write a program that looks for all symlinked files in the current directory and prints out their name and symlinked value similar to the way ls -l does it (
value). Create some symlinks in the current directory and test it out.