http://qs1969.pair.com?node_id=1018686


in reply to Output Repeats in the elsif statement

If you want to check $carroadnameverify2 as empty, you can try following.

elsif(!defined $carroadnameverify2 && $carroadnameverify2 =~ /^\s*$/)

Above condition will print CAR RECORD NOT FOUND message when $carroadnameverify2 is undef or null or string with blank characters.

Replies are listed 'Best First'.
Re^2: Output Repeats in the elsif statement
by PilotinControl (Pilgrim) on Feb 14, 2013 at 12:45 UTC

    Thank you perl monks! The solutions given worked! Much appreciated. Thanks again!