
FishMonger
Veteran
Dec 30, 2008, 9:59 AM
Views: 3975
|
|
Re: [cuboidgraphix] FTP to multiple directories and finding specific files.
|
|
|
The problem is coming from this line: my @file = grep { /^([^.].*)?$Yday/ } $ftp->ls(); The ls command needs to be in ascii mode. Do the setting of binary mode after that line. And since you're executing the ls command in each dir, you'll need to set it to ascii prior to calling $ftp>ls
$ftp->ascii; my @file = grep { /^([^.].*)?$Yday/ } $ftp->ls(); $ftp->binary;
(This post was edited by FishMonger on Dec 30, 2008, 10:02 AM)
|