On Thu, Mar 13, 2008 at 8:36 AM, Sharan Basappa
<[EMAIL PROTECTED]> wrote:
snip
>  - rotate: the elements of a given array are shifted such the elements
>  are shifted right or left
>  and the last/first element fill the first/last position depending on
>  whether shift right or shift left is
>  done.
snip

rotate left:
push @a, shift @a;

rotate right:
unshift @a, pop @a

snip
>  - factorial
snip

Not that I am aware of, you might want to look on CPAN:
search.cpan.org or Google.
-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to