if (join('', @htmlLines) !~ m/word-spacing:\s?[\d]+px/ig) { ... rest of the code ...