in reply to automate ftp using perl

You are probably looking for opendir and readdir or glob - there are hundreds of nodes here with examples.

/J\

Replies are listed 'Best First'.
Re^2: automate ftp using perl
by halley (Prior) on Apr 14, 2005 at 14:39 UTC
    The poster mentions FTP and a different host for a destination. Can you explain how readdir() is going to help check for successful puts here?

    --
    [ e d @ h a l l e y . c c ]

      He may mention that but he actually says : " files from source directory to a destination directory on a different host. But how can i get the list of files in the source directory" - he wants a list of the files in the source i.e. local directory, I'm sure you won't dispute that readdir works there.

      /J\

Re^2: automate ftp using perl
by sveera (Initiate) on Apr 14, 2005 at 12:45 UTC
    Thank you so much gellyfish srini