Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: elsif statement not being evaluatedby 2teez (Vicar) |
on Nov 18, 2012 at 06:27 UTC ( [id://1004379]=note: print w/replies, xml ) | Need Help?? |
Hi jonagondos, I suppose you want to use You are assigning to variable $choice, the value of the variable $ans2 using the assignment operator '=' . So, whatsoever, value inputted was replaced by the value of variable $ans2. In which case variable $choice value is ALWAYS evaluate to 2 the pre-defined value of variable $ans2, so your elsif(){...} statement is not being evaluated.
If you tell me, I'll forget. If you show me, I'll remember. if you involve me, I'll understand. --- Author unknown to me
In Section
Seekers of Perl Wisdom
|
|