in reply to Re: Weird situation...
in thread Weird situation...

Works for me, as I would expect it to.

my $html = do { local $/ = undef; <DATA> }; $html =~ s/<!-- rem_me --><\/li>/<ul>/sig; print($html); __DATA__ </a> <!-- rem_me --></li> <li>
</a> <ul> <li>

What's rem_me in reality?

Replies are listed 'Best First'.
Re^3: Weird situation...
by fibonacci_jones (Initiate) on Mar 19, 2008 at 23:38 UTC
    It (<!-- rem_me -->) was a marker for the generated output... not all instances of:

    </a> </li> <li>
    were in need of being changed... so this marker was created in the hope that the above replacement would pick it up... Why wouldn't it work on my end? There's about 5 different instances, and there's no way I can just hardcode this directly into the page as the output is dynamic.
      The file or $html doesn't contain what you think it does. Or it does work and there's an independent problem. Or you're not using the code you think you are using.
        and those underpants are not yours :)