Write a Perl script that prints the contents of a file
- Write a Perl script that prints the contents of a file, prefixing each line with a line number. The script should accept exactly one argument representing the name of the file.
- The script should be able to handle the following error conditions:
- Incorrect number of arguments
- The specified argument is not a file.
- You cannot use the UNIX "cat" command in this assignment. You must use Perl to read the file and count the lines.
- You cannot use the UNIX "nl" command in this assignment.
- The printf function in Perl is useful for formatting numbers.
- The script must be able to execute on Einstein
- The script file name must be: linenum
- The script must be located in $HOME/itec400/homework
- Make sure the permissions on the your itec400 directory are 705
- Make sure the permissions on your script are 705.