in reply to Re: Lost in-place file edit code
in thread Lost in-place file edit code
My most recent attempt was a file that looked like this:
#!/usr/bin/perl -i.orig -p s/submit_(.*?)_/submit\u$1/g;
I love the way you can specify command line arguments on the hash-bang line. The code above used the in-place capitalisation regexp operator discussed in another recent node (Regexp matched part to lower case).
|
|---|