We don't bite newbies here... much | |
PerlMonks |
Re: Is this logic valid?by mincus (Chaplain) |
on May 15, 2001 at 20:40 UTC ( [id://80607]=note: print w/replies, xml ) | Need Help?? |
Unless I am missing something... it looks as if you are compairing quoted strings and not variables.
('ShowPersonal' eq 'Personal') will never evaluate to true. without seeing more of your code I can only guess that you either mean ($showpersonal eq 'Personal') and hopefully not ('$showpersonal' eq '$personal') there is a very big difference between what you have and the two examples that I have shown. Mine use variables, which, hopefully would be modified in your program, so that they would contain the values of something useful to compare, and in the second example that I give, you are compairing the quoted string $showpersonal and $personal, not the two variables $showpersonal and $personal. here are some good documents that you may want to look over, and you might also consider posting more of the code that you are working with. check this out and perhaps this as well. good luck!
In Section
Seekers of Perl Wisdom
|
|