in reply to Re^2: Net::FTP usage
in thread Net::FTP usage
You never call chdir, so you never change your working directory for your Perl script.
Maybe you want to read about glob instead of shelling out to write the entries of a directory into a file?
Also, I still don't believe you that you do not have whitespace at the end of the elements of @array.
use File::Glob 'bsd_glob'; my @files = bsd_glob "$tempdir/sudolog*"; print "Found file [$_]\n" for @files;
... will read all the files named sudolog* from the directory given in the $tempdir variable.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Net::FTP usage
by kafkaf55 (Acolyte) on Aug 13, 2010 at 14:47 UTC | |
|
Re^4: Net::FTP usage
by kafkaf55 (Acolyte) on Aug 13, 2010 at 14:59 UTC | |
by Corion (Patriarch) on Aug 13, 2010 at 15:02 UTC | |
by jonadab (Parson) on Aug 13, 2010 at 18:48 UTC |