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:
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
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
Back to
Seekers of Perl Wisdom