$obj->average=(1..10); #assign 5.5 as the average $obj->average=2.5; #assign 2.5 as the average