Maybe you want a substitution rather than a match:
Code:
$page =~ s#<title>(.*)</title>#$1#im;
Although as
Sergei Steshenko suggests, you are better off using a proper HTML parser, since there are variations of the tags which will become unwieldy when using regular expressions.