Problems? Is your data what you think it is? | |
PerlMonks |
If/else problemsby Anonymous Monk |
on Nov 18, 2003 at 23:12 UTC ( [id://308174]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Wisdom is sought from the monks for a beginner. I have installed various cgi/perl packages but I have decided to write what I thought would be a relatively easy script - oh how naive for one so old!
I am trying to determine output based on the month, the codse I have been working with is as follows:-
If i exclude the if statement and the relevant { or } the script displays the contents of hours.txt but as soon as I use the if statement the 500 Internal Server Error is displayed. I have searched the monastary and from the examples I have found I thought I had got the syntax correct. Perhaps I have looked at this for too long and can't see the obvious errors. Hopefully someone can spot my problem and offer a solution and set me on the path to enlightenment. Many thanks for any help that may be offered Julian Edit by castaway, fixed closing code tag, added some p tags.
Back to
Seekers of Perl Wisdom
|
|