in reply to Directory name as command line argument
You'll want to look at @ARGV in perlvar and opendir, readdir.