Shiping Wang wrote: : Hi, I have a big array, I need re-arrange it then put into sub : array, after that do something on each sub array.
How do you want to split it into sub arrays? Like items, number of items, random items, ...? : Here is my code: [snip] It is really hard to tell what you are attempting. We don't know what is in @P_array, for example, because it is never defined and @q_$i isn't a valid perl variable name. Working code would be better. Tell us what you want to do to the big array. HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>