Your posted code is a little sparse, particularly since the nesting structure of your code is ambiguous (You include several unterminated blocks, so we have to guess what level your statements exist at). If I assume your assignments with $1 and $2 are within your if block, you could simply add an else block where you explicitly undef your $su_adapter and $su_date. If this is incorrect, please post sufficient code (or pseudocode) for us to feed directly into our interpreters without getting compilation errors.
A comment on formatting - once you have wrapped something in code tags, all characters are displayed literally, so there's no need for <br> tags. See Markup in the Monastery.
Update: With the changes made to the OP, this answer is no longer relevant -- see Re: undef a variable for a loop.
In reply to Re: undef a variable for a loop
by kennethk
in thread undef a variable for a loop
by csiepka
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |