On Thu, 16 Jan 2003 22:34:53 +0100, [EMAIL PROTECTED] (Jenda Krynicky)
wrote:

>> are missing, seemingly random:
>
>Ahh the usual mistake.
>
>The readdir() returns just the file and subdirectory names, not 
>complete paths.
>
>Therefore if you opendir() some other directory than '.' you have to 
>prepend that directory to the filenames before you do the tests.
>Otherwise you are looking at the files in the current directory.
>
>Try
>       foreach (@files){push @movem,$_ if -f "$homedir/$_"}

Thanks guys. It makes sense now. I guess I should have taken a clue
from the fact that it worked until I switched directories. 
I guess I was thrown off by the fact that I did get some output, but
not the full output. I guess this is one of those areas where Perl
will do something unpredictable?



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to