$LINE_LENGTH global missing and $name wasn't defined