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!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.