harald has asked for the wisdom of the Perl Monks concerning the following question:
But this gives me error message:perl -i~ -pe 'if($ARGV ne $l){$f=$l=$ARGV;$f=~s \.wra//;substr($_,-11) +=$f.$/;}' *
After this, the files are empty.Modification of a read-only value attempted at -e line 1, <> line 1.
Does anyone know what may be wrong ?
update (broquaint): added formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Replacing text inside lots of files
by bart (Canon) on Nov 03, 2003 at 10:33 UTC | |
by harald (Initiate) on Nov 03, 2003 at 10:52 UTC | |
by delirium (Chaplain) on Nov 03, 2003 at 11:13 UTC | |
by harald (Initiate) on Nov 03, 2003 at 12:32 UTC |