Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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.


Comment on Re: Output Repeats in the elsif statement
Download Code
Re^2: Output Repeats in the elsif statement
by PilotinControl (Scribe) on Feb 14, 2013 at 12:45 UTC

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1018686]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2014-09-21 13:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (170 votes), past polls