Some questions regarding your solution.
- Why the /g modifier considering that you're matching (in scalar context) against $_ only once before $_ changes?
- Why a regexp anyway? Considering that "Required" is a fixed string, and you anchor it on both ends, $_ eq "Required" will do as well.
- Why quotes around $&?