in reply to Re: a problem with arrays and undeffing i think
in thread a problem with arrays and undeffing i think

it only goes through the list once. theres a timer that is set to run &Outgoing_FTP but every hour when it starts uploading the files it will come up with the bad file descriptors error for the amount of files that were uploaded before, but, it won't print their file names, just a space.
  • Comment on Re: Re: a problem with arrays and undeffing i think

Replies are listed 'Best First'.
Re: Re: Re: a problem with arrays and undeffing i think
by graff (Chancellor) on Jun 19, 2002 at 02:09 UTC
    Have you done an independent check of directory contents before and after a given run? E.g. if it runs at 09:00, you should do a (gnu) "find" (or something equivalent) on the target directory a couple minutes before execution, and again a minute or so after execution.

    It may be that having %Dir tied with IO::Dir, while trying to modify the contents of the target directory, is causing unexpected side-effects (or failure to behave in the expected manner), and the problem is not with the @FileList array, but rather with the directory contents.