The $ for $var and for $end is quoted so they are literal matches.
In reply to Re^2: Someone please verify this. by GrandFather in thread Someone please verify this. by ksangam