Update l

Thanks for this script! 
I got the error "invalid subscript" when running this script.  After escaping the '[' at line 183, it works fine.