in reply to replacing literals with constants

sub ten () { 10 } # or your function will take arguments