Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Output Repeats in the elsif statement

by nvivek (Vicar)
on Feb 14, 2013 at 05:23 UTC ( #1018686=note: print w/replies, xml ) Need Help??

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 (Monk) on Feb 14, 2013 at 12:45 UTC

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1018686]
[ambrus]: Corion: um, that was me (duh)
[ambrus]: I just can't get you two to cooperate directly because schmorp doesn't want to be in the chatterbox
[ambrus]: maybe you should join his irc channel or something, unless that causes a flame blowup

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2016-12-09 14:09 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (151 votes). Check out past polls.