We can also use like this,
print $array[(scalar @array)/2];