~/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
In reply to Re(3) Replacing text inside lots of files
by delirium
in thread Replacing text inside lots of files
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |