in reply to Storing Substitution Output String
So you better use $1 as thats the match you where looking for then a string that you unneccesarily altered, so use a match
instead. And you might consider not to use dotStar, see Ovid's Death to Dot Star!:-)$page2 =~ m|<title>(.*)</title>|gi; print $1;
Have a nice day
All decision is left to your taste
Update
so alike this?print '<li>'.$1.'</li>';
In Section
Seekers of Perl Wisdom