CIS 2279 Homework Assignment #11
Due Monday, Nov 17,
2008
All files created must be saved in your class directory
/mnt/homes/CLASSES/CIS2279/<username>
- Create a perl script named lab11.pl in your user directory. The
script must perform the following operations:
- Display the current time (formatted as HH:MM:SS) and date
(formatted MM/DD/YYYY) to the terminal. Months should be an a
1-12 range and the year should be the 4 digit year.
- Open the directory /mnt/homes/CLASSES/CIS2279 and read
through the list of subdirectories found.
- Display the name of each subdirectory and it's last access
time in human readable format.
(see lab #10).
- Display the age of each subdirectory, in hours, based on the
modification time (this will be the difference between the
current time and the modification time of the directory).
solution
last updated: 11 Nov 2008 21:28