Nor it it an "in-place" reversing method, failing the requirements of the question. You've made an entire copy of the array in a different part of memory.@array[0..$#array] = @array[reverse 0..$#array]; That's *not* a built-in array-reversal method.
-- Randal L. Schwartz, Perl hacker
In reply to •Re: Re: (OT) Interview questions -- your response?
by merlyn
in thread (OT) Interview questions -- your response?
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |