let's say you have set of integer in the list.
List Declare:
@lists = (22, 10, 5, 2);
but if I do want all the elements to be divide in let's say 2, is there anyways to do other than manually computing in running loop?
Don't want to compute like this:
foreach $list (@lists)
{
print (list/2);
}