Perth Scorchers escaped with a six-run win at home against Brisbane Heat in their opening match of the Big Bash League.