http://www.perlmonks.org?node_id=1003824


in reply to else statement not being executed

Welcome jonagondos,

The line you need to change is:

if (defined($user_radius))
to
if ( $user_radius )

'$user_radius' is defined, but equal to "". Even if you undefined it in the loop, you still would define it when you typed the 'CR'

Good Luck!

"Well done is better than well said." - Benjamin Franklin

Replies are listed 'Best First'.
Re^2: else statement not being executed
by jonagondos (Novice) on Nov 14, 2012 at 14:50 UTC
    thanks guys