in reply to Tracing an Uninitialized Error

Print your ifs...

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

Cheers,
R.

Pereant, qui ante nos nostra dixerunt!