in reply to Validation: is defined whether the variable?

Because you do not test if the variable is defined but if it is true or false (0, undef, "").

Maybe you had something like this in mind?

sub isDef { return (defined shift) ? 'true' : 'false'; }

Replies are listed 'Best First'.
Re^2: Validation: is defined whether the variable?
by breeze (Initiate) on Aug 07, 2011 at 10:55 UTC
    But thanks, your solution is work correct ;)
A reply falls below the community's threshold of quality. You may see it by logging in.