Missing $ on loop variable at measurements2.pl line 69.