in reply to Re^2: using pagecount variable in array?
in thread using pagecount variable in array?
You're mistaking the cause for your error. In fact, the code you posted will run AS-IS if you simply assign a value to $total_recs at the start of the script, and use POSIX qw/ceil/;. Though it's wise beyond words to learn to use strict;, and smart to use lexical variables such as my $i, the change you made by adding my $i to your foreach loop can't be what fixed the code you posted. The code you posted essentially works.
So what exactly was the error you were getting?
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: using pagecount variable in array?
by liverpole (Monsignor) on Jul 23, 2006 at 17:43 UTC | |
|
Re^4: using pagecount variable in array?
by bobafifi (Beadle) on Jul 23, 2006 at 17:56 UTC | |
by CountZero (Bishop) on Jul 23, 2006 at 18:32 UTC | |
by Ieronim (Friar) on Jul 23, 2006 at 18:42 UTC | |
by CountZero (Bishop) on Jul 23, 2006 at 19:21 UTC |