in reply to PERL Standard Deviation lib

I see the Statistics::Basic lib available but how to implement the same using arrays and not list.

You can think of an array as a named list. What did you try?

my $std_dev = Statistics::Basic::stddev (@act_ret);

looks like it should work, according to the documentation. Does it not?