in reply to Re^2: how to sum over rows based on column headings in perl
in thread how to sum over rows based on column headings in perl
That error is pretty clear! You are missing the right curly bracket closing the while loop you opened on line 26. The end of line 36 is given as the location of the error because that's where Perl runs out of code in which to find the closing bracket.
You have a stray opening bracket under the line you commented out at line 27. This is a good example of why you should have consistent syntax: your commented-out while statement has the bracket on the next line, while the new while statement has the bracket on the same line. Pick one and stick with it. In my view, putting the brackets on the same line reduces the chances of them going astray.
Update: explain cause of error
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: how to sum over rows based on column headings in perl
by angerusso (Novice) on Jul 31, 2015 at 19:07 UTC | |
by Anonymous Monk on Jul 31, 2015 at 19:29 UTC | |
by angerusso (Novice) on Jul 31, 2015 at 19:58 UTC | |
by Anonymous Monk on Jul 31, 2015 at 20:09 UTC |