in reply to Shorten the list of computation

Instead of using loads of seperate variable, use arrays:

my ( @list_total_perl, @perl ); @perl = list_from_wherever(); $list_total_perl[ $_ ] += $perl[ $_ ] for 0 .. $#perl;

Or if you insist on indexing things with letters, use hashes.

my ( %list_total_perl, %perl ); @perl{ 'a' .. 'e' } = list_from_wherever(); $list_total_perl{ $_ } += $list{ $_ } for 'a' .. 'e';

Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller