in reply to Control Structures
I would suggest changing the structure of the program slightly - factor out the code from the else condition and then rather than die you can use an additional if ... else in the first condition. If the condition is true continue to execute the existing code else go the error handling subroutine.
/J\
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Control Structures
by ghenry (Vicar) on Apr 29, 2005 at 11:34 UTC |