# # Loop through quotes array and upload each file in the array. # foreach my $quote (@quotes) { system("cls"); emphasize("Sending quote: $quote"); my $return = $ftp->put("$quote"); # # If the upload completed $return should == $quote # and we can move the file to a backup folder. # if ($return == $quote) { # Needs testing!!!!!!!!!!!!!! move("$quote", "${new_dir}\\$quote") or warn "move failed: $!"; } else { while ( &connect_ras() ) {} # ShouldI place a goto here and a label at the beginning? } } disconnect_ftp(); }