sub function($_) #arbitary function...will be given in the partually written program { return ( $_[0] - 50.02 )**2 + 2; }