in reply to Can't modify require in scalar assignment

Please add <code> tags to your questions. it makes it easier to answer and thus more likely that you get an answer. See Writeup Formatting Tips