... print "if (($position < $start) && ($position < $end))\n"; if (($position < $start) && ($position < $end)) { ... # etc