my $page = ## the contents of the entire page in a string ##; my $old_text = qq ( LOTSOFHTML ); my $new_code = qq ( LOTSTOREPLACEWITH ); [download]
In reply to correct usage of q, quotemeta, with s/// by cidaris