First of all, this is a bit dicey, and not real "webby," IMHO. Personally, I would just write it to the text box and let them scroll. Ideally, you would write the content to a <p> tag if you wanted to parse it out in chunks.
Second, you can't just assign all the content in the file to an array. How would you keep the value of the array between round trips to the browser? You will probably need to use read to retrieve a predetermined amount of content and then store a counter of where you are in a session key and increment it as the 'Next' link is clicked. On subsequent trips back to your script for more content, you would use the session key to offset the next amount of content from your file.
This is just one way I'm sure, but not real complicated.
In reply to Re^3: Perl/CGI web page showing data by portions
by bradcathey
in thread Perl/CGI web page showing data by portions
by vitaly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |