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.
In reply to Re^3: Net::FTP usage
by Corion
in thread Net::FTP usage
by kafkaf55
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |