if (/foo/) { $_ = "This is now bar\n"; } [download]
In reply to Re^2: match a line and edit it by Anonymous Monk in thread match a line and edit it by Anonymous Monk