bobafifi has asked for the wisdom of the Perl Monks concerning the following question:
Many thanks in advance,my $pagecount = $total_recs / 10; my $n = $pagecount; print ("Page 1 of "); print POSIX::ceil($n), $/; my @pages = (1 .. $n); for $i (@pages) { print "<a href=\"http://www.example.com/page$i.shtml\">http:// +www.example.com/page$i.shtml</a><br>\n"; }
-Bob
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using pagecount variable in array?
by liverpole (Monsignor) on Jul 23, 2006 at 14:10 UTC | |
by bobafifi (Beadle) on Jul 23, 2006 at 14:26 UTC | |
by davido (Cardinal) on Jul 23, 2006 at 16:17 UTC | |
by liverpole (Monsignor) on Jul 23, 2006 at 17:43 UTC | |
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 mrborisguy (Hermit) on Jul 23, 2006 at 15:29 UTC | |
by bobafifi (Beadle) on Jul 23, 2006 at 17:47 UTC |