Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
why doesn't this change/modify the file names? when I use the -p switch instead of -n it shows up fine but when I cat names nothing :(perl -ni.bak -e 's/\s+//g;' names
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl on the commandline
by blakem (Monsignor) on Aug 21, 2001 at 23:02 UTC | |
|
Re: perl on the commandline
by Cine (Friar) on Aug 21, 2001 at 23:11 UTC | |
by Anonymous Monk on Aug 21, 2001 at 23:31 UTC | |
by Hofmator (Curate) on Aug 22, 2001 at 15:37 UTC |