Re: split large array into chunks

2003-09-05 Thread John W. Krahn
Ramprasad A Padmanabhan wrote: > > Hello all, Hello, > Suppose I have a huge array of filenames and I want to move them > I would like to move 1 chunk at a time on 'n' elements > > How Can I efficiently do it ? > > something like > > @allfiles = () # 1 files > @smallchunks = spl

Re: split large array into chunks

2003-09-05 Thread Randal L. Schwartz
> "Ramprasad" == Ramprasad A Padmanabhan <[EMAIL PROTECTED]> writes: Ramprasad> Hello all, Ramprasad> Suppose I have a huge array of filenames and I want to move them Ramprasad> I would like to move 1 chunk at a time on 'n' elements Ramprasad> How Can I efficiently do it ? Ramprasad> some

Re: split large array into chunks

2003-09-05 Thread Jenda Krynicky
From: Ramprasad A Padmanabhan <[EMAIL PROTECTED]> > Suppose I have a huge array of filenames and I want to move them I > would like to move 1 chunk at a time on 'n' elements > > How Can I efficiently do it ? > > something like > > @allfiles = () # 1 files > @smallchunks = split_to_

split large array into chunks

2003-09-05 Thread Ramprasad A Padmanabhan
Hello all, Suppose I have a huge array of filenames and I want to move them I would like to move 1 chunk at a time on 'n' elements How Can I efficiently do it ? something like @allfiles = () # 1 files @smallchunks = split_to_chunks(@allfiles,100); # This functi