shift multiple items from an array

Ken Elliott's picture

They have: 358 posts

Joined: Jun 1999

Hello again. Sorry I don't go away .

I have a script that I want to show only 10 of the text files in a directory. But their are more then 10. What I want to do is to print the first 10 and save the rest for a newpage.

The questions are:
How do I shift 10 items out the array?
How do I save the rest of the array and send it to the next perl script.
Or is their an easier way to accomplish this task.

My one thought is a multipart script. One that executes to an extent(after the first 10 are printed) and then when they click on the link, the script proceeds to print the next 10, so on and so forth. Is it possible to create a script that will do this?

Sorry about all the questions but PERL is hard to teach yourself. It's only been about 3 weeks, and I have found myself dreaming PERL code..wtf. hehe.

Thanx guys/gals,
VulKen
I GOT BEEF

Pimpin like a pimp with an electrofied pimpin machine!