There's more than one way to do things | |
PerlMonks |
Re: Would you use 'goto' here?by belg4mit (Prior) |
on Dec 06, 2001 at 06:33 UTC ( [id://129835]=note: print w/replies, xml ) | Need Help?? |
I myself wouldn't. The only time I can recall
ever using goto is in my recent cron script.
As a means of effectively restarting the program.
To me this really seems to be a case for using if/else contructs. One question though, why aren't you checking for the officeID outside of the sub? Since you are apparently checking other things before to determine which sub to call...
--
In Section
Seekers of Perl Wisdom
|
|