I am working on a script to open a data file and print the lines in the file, with a url and description.
I can output the file, but the entire file outputs. over 4000 links to other websites. I want to limit this out put to about 50 to 100 links per page.
Again, I can output the data the way I want it, but can not limit it and return a next or a list of pages, that may follow such as 1 2 3 4 >>>Next Page etc.
This is the output loop:
foreach my $i (@grok) {
chomp($i);
my ($title,$url,$status,$cat) = split(/|
if ($status ne “OUT”) {
print “<a href=”$url”><font face=Arial,helvetica,vedana size=3 color=#083194><b>”$title”</b></font></a><p>n”;
}
}
What can I do or how do I limit this and return so many results per page and enumerate the rest of the pages in sequence?
Thanks,
Nick