in reply to home work help
You should probably add this line near the top, and then declare your variables with my:elsif (x = max - 1)
It will help you catch these kinds of errors.use strict;
Update: I believe that if() statements and for() loops require curly braces, even if they are one-liners. Code such as this:
should be like this:for (...) if (...) ...blah...
buckaduckfor (...) { if (...) { ...blah... } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: home work help
by mbond (Beadle) on Jun 20, 2001 at 18:04 UTC | |
|