>   $question = $default if $question eq '';

You could possibly shorten this last line to:

$question ||= $default;

This will set $question to $default if $question logically evaluates to
false (which includes the case where $question is the empty string). If
you only want to reset $question when it contains nothing, however, the
previous solution is exactly what you want to do.

 -dave



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to