Hi Harry,
Raymond Wan wrote:
The other option is to *not* use ls and get your script to stat the file directly (NB: I guess you want stat and not lstat?). In this case, you should get a list of files in the directory, and then run stat on each one. If you do this (which is perhaps the better option), you would want to look up the readdir command, in addition to stat.
Sorry, slight correction to what I said as I just realized what you were doing :-) ... If you are using ls to feed the list of files, then maybe your problem is how you ran "ls"? Perhaps you should use the "-1" option to ensure one file is on each line?
Ray -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/