in reply to Output Repeats in the elsif statement
Were you trying to test whether $carroadnameverify2 is null in the elsif statement? If so, I think you meant this:
... elsif ($carroadnameverify2 eq '') { ...
$carroadnameverify2 =~ '' will evaluate to true, regardless of $carroadnameverify2's value or whether it's even defined.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Output Repeats in the elsif statement
by PilotinControl (Pilgrim) on Feb 13, 2013 at 21:19 UTC | |
by Kenosis (Priest) on Feb 13, 2013 at 22:04 UTC | |
by PilotinControl (Pilgrim) on Feb 14, 2013 at 02:28 UTC | |
by Athanasius (Archbishop) on Feb 14, 2013 at 03:12 UTC | |
by Kenosis (Priest) on Feb 14, 2013 at 03:13 UTC |
In Section
Seekers of Perl Wisdom