This leads to a clever golf trick, by the way. To get only the upper half of an array, use shift@a for@a, and to get the bottom half, use pop@a for@a.
Jeff japhy Pinyan,
P.L., P.M., P.O.D, X.S.:
Perl,
regex,
and perlhacker How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart