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


in reply to else statement not being executed

When you "chomp" $user_radius, it is no longer "undef", it becomes an empty string, therefore it is always defined. You should also verify if it is empty.

Testing never proves the absence of faults, it only shows their presence.