in reply to How does this regex not match?

Or, you could use the quotemeta function that does exactly the same as \Q...\E quoted above:

my $want = quotemeta 'my_stuff[1]=';