...

View Full Version : Perl Script...Working on Directory



panapka
02-19-2010, 01:01 PM
Hi All,

I need a perl script for the following :

+++++++++++++++++++++++++++++++++++++++++++++
Write a script which takes a directory name and provides a series of statistics about that directory. It should say:

•How many files it contains
•How many of the files are readable and writable
•How many subdirectories it contains
•It should also break down all the files into file types based on the last 3 letters in their name. These should be

listed with the most common extensions first.

If the name provided either doesn’t exist, or isn’t a directory the script should throw a helpful error message
++++++++++++++++++++++++++++++++++++++++++++++++++++

Please help me out

Thanks in advance

Regards,
Pankaj

FishMonger
02-19-2010, 02:08 PM
Have you read the posting rules for this forum, specifically the part about no homework assignments?

http://www.codingforums.com/rules.htm

netroact
02-20-2010, 10:56 PM
You might try the Cheat::Assignment module: http://search.cpan.org/search?query=Cheat::Assignment&mode=all

MetalGear
02-25-2010, 09:44 AM
lol! :D

Recently I changed my company, and they have given some exercises to practice,
when I searched for "unix command to find subdirectories"
I found this thread :p



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum