in reply to removing comments
That would work if you ran the program like so:
perl -i -pe 's/^\s*\'.*//' targetfilename
On the perlrun page you can see why this works (along with examples of how -p and -i expand).
You are running your substitution on the filename rather than on any of the contents of it.
-Paul
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: removing comments
by dhudnall (Novice) on Jun 21, 2007 at 15:32 UTC | |
by Roy Johnson (Monsignor) on Jun 21, 2007 at 16:27 UTC | |
by holli (Abbot) on Jun 21, 2007 at 16:35 UTC | |
by GrandFather (Saint) on Jun 21, 2007 at 20:42 UTC | |
by jettero (Monsignor) on Jun 21, 2007 at 16:43 UTC |