On 6/4/07, Ben Edwards <[EMAIL PROTECTED]> wrote: snip
@files = $ftp->ls($flist) or die "failed to ls $flist";foreach $file ( @files ) { if ( $file !~ /No such file or directory/ ) {
snip
I am not entirely sure but this looks like a OS specific error (when there is no files that match the pattern the error message becomes the first item in the array). Anyone have a better solution to this?
snip On all of the platforms I tested (MS, FreeBSD, and Linux), a quick test showed that the ls died rather than return "No such file or directory" as the list of files. Are you seeing this in the wild? If so, what platform and server? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/
