in reply to Storing Substitution Output String

Well, if you want a match, you ought to use a match, and not a substitution ;-).
$page2 = "<li>A$1C</li>" if $page =~ m{<title>(.*)</title>};

Abigail