Looking for some help here you perl geniuses you : )

I need a program that will list all of the files in a directory.
Without any arguments the program will list only the files (not
directories) in the current directory.  But I must have some command
line options:

-d <with 0 or 1 directory argument> if no argument is given, the cwd
is used.  If the argument given is not a directory an error is thrown.
The output needs to have the following headers:
File Name | Size | Owner | Group ( with no pipes)

-l displays a long listing (can be used with -d as "script.pl -l -d
<dirname>")
The output needs to have the following headers:
File Name | Size | Owner | Group (with no pipes)

no parameters - show the files in the cwd
The output needs to have the following header:
File Name


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to