|
5/24 |
2003/4/11 [Computer/SW/Languages/Perl] UID:28087 Activity:nil |
4/11 I need to delete a method from a bunch of classes. How do I do do a multiline match and delete in perl or sed or whatever? Something like 's/int.*::Foo\(\).*\{.*\}//m', but that doesn't work. \_ It's been a while since I've done this but I *believe* you need to futz with the paragraph marker variable. I'm sure some other perl guru who has done this more recently can provide a full answer. |