- or download this
$ftp->cwd($directory) or $newerr=1;
push @ERRORS, "Can't cd $!\n" if $newerr;
myerr() if $newerr;
$ftp->quit if $newerr;
- or download this
if ( !$ftp->cwd($directory) )
{
...
myerr();
$ftp->quit;
}
- or download this
$ftp->cwd($directory) or ReportError( "Can't cd" );