http://www.perlmonks.org?node_id=666320


in reply to Backticks and Pattern Matching.

When you use backticks and you don't chomp the results the returned value will include a newline.

You must account for this in your strict comparison if you're not going to chomp (but please use eq, otherwise you're not comparing you are setting).