Good stuff, but typically we spell that:splice @array, 0, 0, splice(@array, rand @array);
splice is cool, but you don't need to use it for the common thingies.unshift @array, splice @array, rand @array;
-- Randal L. Schwartz, Perl hacker
In reply to RE: Array One-liners
by merlyn
in thread Array One-liners
by japhy
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |