Gossamer Forum
Home : General : Perl Programming :

Break Results

Quote Reply
Break Results
Hi Folks,

I wonder if I posted some code and an explanation of my problem, someone wuld be able to help?

Basically I need to split up an array of results into sets of 20, to display 20 results per page. You get the idea. Anyway, has some got any example code or any information or can help me on this one?

If so, I would be very grateful for your time.

Rgds,

Wiliam

Quote Reply
Re: Break Results In reply to
arrays are already split up.

@your_array[x .. y];

-- Gordon


s/(\d{2})/chr($1)/ge + print if $_ = '8284703280698276687967';
Quote Reply
Re: Break Results In reply to
So a foreach $scalar (@array[1..10]) would work?

Rgds,

Wil.

Quote Reply
Re: Break Results In reply to
Brilliant, it worked. Thankyou very very much. God, I do all the hard work and miss out the simples of things <G>.

Thanks for your help.

Wil.