in reply to Re: Re: Replacing text inside lots of files
in thread Replacing text inside lots of files

You may have replaced $l (el) with $1 (one). $1 (one) is a reserved variable for Perl that catches parts of regular expression, and can't be assigned to directly. For example:

~/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