in reply to Re: Re: Replacing text inside lots of files
in thread Replacing text inside lots of files
~/test$ perl -e '$1 = "blah"' Modification of a read-only value attempted at -e line 1.
Whereas :
~/test$ perl -le '$var = "blah"; $var =~ /^(....)$/; print $1' blah
|
|---|