Just another Perl shrine | |
PerlMonks |
Empyting an array inot multiple arraysby pr09 (Novice) |
on Oct 27, 2011 at 14:57 UTC ( [id://934165]=perlquestion: print w/replies, xml ) | Need Help?? |
pr09 has asked for the wisdom of the Perl Monks concerning the following question:
Hi All,
I have a scenario where i have an array say @array_original with 300 elements.
Not i have to empty the array such that there are 3 new arrays array1,array2,array3.
@array1 should have array elements from 1..100.
@array2 from 101..201.
@array3 from 202..300
Can anyone tell me how to implement this scenario.
Back to
Seekers of Perl Wisdom
|
|