Berkeley CSUA MOTD:Entry 28087
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/24 [General] UID:1000 Activity:popular
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.