" Keep adding "VAR," between the parens in #2 as long as Perl complains about 'Global symbol "VAR"...'
Someone should probably write an Acme:: module to do this automatically."
I'll be glad to. Just as soon as I figure this all out. :)
My biggest hangup, I think, is that I'm quite comfortable with sed. But sed is "greedy" by default, and while Perl RE can be. It's not, by default, and that's what I need here (not greedy).
will match my pattern in sed. But it will match from the first </div> till the first </body>. Which is too much.s/\<\/div\>/,/\<\/body\>/
Thanks again for the response, educated_foo
--Chris
Yes. What say about me, is true.
In reply to Re^2: Perl RE; how to capture, and replace based on a block?
by taint
in thread Perl RE; how to capture, and replace based on a block?
by taint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |