On Sep 18, 1:59 pm, [EMAIL PROTECTED] (Telemachus Odysseos) wrote: > The script works > perfectly if I run it in the directory itself, but if the script is > somewhere else in my system, it prints the filenames but not the sizes.
That's because readdir returns a plain filename. You need to either chdir() to the directory within your script, or fully qualify the filename (ie, -s /path/to/my.file) -- The best way to get a good answer is to ask a good question. David Filmer (http://DavidFilmer.com) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/