PerlJam has asked for the wisdom of the Perl Monks concerning the following question:
# # 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(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: To goto or not to goto
by dsheroh (Monsignor) on Jun 10, 2002 at 22:37 UTC | |
|
Re: To goto or not to goto
by FoxtrotUniform (Prior) on Jun 10, 2002 at 22:37 UTC | |
|
Re: To goto or not to goto
by DamnDirtyApe (Curate) on Jun 10, 2002 at 22:38 UTC | |
|
Re: To goto or not to goto
by PerlJam (Sexton) on Jun 10, 2002 at 22:56 UTC | |
by Rich36 (Chaplain) on Jun 11, 2002 at 00:11 UTC |