Luinrandir Hernson wrote: : srand; : $A = int (rand (4)) : if ($A eq '0') {print "<BODY BACKGROUND=\"images/celtknt0.jpg\">\n"}; : if ($A eq '1') {print "<BODY BACKGROUND=\"images/celtknt1.jpg\">\n"}; : if ($A eq '2') {print "<BODY BACKGROUND=\"images/celtknt2.jpg\">\n"}; : if ($A eq '3') {print "<BODY BACKGROUND=\"images/celtknt3.jpg\">\n"}; Need a semicolon after the second line. When I add that, it works fine for me. -- tdk
- So what am I doing incorrectly?? Luinrandir Hernson
- RE: So what am I doing incorrectly?? Greg Smith
- Re: So what am I doing incorrectly?? Curtis Poe
- Re: So what am I doing incorrectly?? Brett W. McCoy
- RE: So what am I doing incorrectly?? Timothy Kimball
- RE: So what am I doing incorrectly?? Grierson, Garry (UK07)
- Re: So what am I doing incorrectly?? Walnut