in reply to Control flow revisited

Why do you want to use a variable there? You aren't using the variable elsewhere. Why not just:
if ($htmlLines [100] !~ m/word-spacing:\s?[\d]+px/ig)

assuming that 100 is the line you want to match.

Abigail