in reply to RE: Number of times I've used goto in Perl
in thread Number of times I've used goto in Perl
sub main
{ ##>> 01001000:set output
&set_output;
##>> 03001000:database up
&database_up;
##>> 04001000:prior status
&prior_status;
##>> 06001000:delete log records
&delete_log_records; .........
the "&" labels in "main" naturally call subroutines down in the body of the script. If our load process fails I want a way to "goto" the failure point in the script and continue processing by passing in a parameter that represents the step from which I'd like to continue. I can't think of another way of doing this with out rewriting the whole blessed script.
Help O great ones!!
Grasshopper
|
---|
Replies are listed 'Best First'. | |
---|---|
Re (tilly) 3: Number of times I've used goto in Perl
by tilly (Archbishop) on Nov 17, 2000 at 21:43 UTC |