On Nov 19, 2013, at 3:17 AM, John W. Krahn wrote: > readdir() returns just the file names, without the path.
Thanks, John. I didn't realize that. This morning, I found http://perldoc.perl.org/functions/readdir.html and read the following: "If you're planning to filetest the return values out of a readdir, you'd better prepend the directory in question. Otherwise, because we didn't chdir there, it would have been testing the wrong file." which is just a more verbose way of saying what you said already. ;) > At this point $file has no value. I see it now. It was actually put there by mistake and has been removed from the latest version. > You've changed them from opening an OUTPUT pipe to a mail program to opening > a file named "|$path -t -oi -oem" for INPUT! They were correct in the first > place. Well that's embarrassing. :\ I guess that's what I get for going too fast. Thanks again for the help, Frank -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/