http://qs321.pair.com?node_id=170532

cidaris has asked for the wisdom of the Perl Monks concerning the following question:

I have a giant chunk of HTML, tags, quotes and all. I have done this:
my $page = ## the contents of the entire page in a string ##; my $old_text = qq ( LOTSOFHTML ); my $new_code = qq ( LOTSTOREPLACEWITH );


I cannot get  $page =~ s/$old_text/$new_code/g to work for the life of me. Should I use quotemeta instead, or simply 'q' instead of 'qq'.

Thanks
Aaron