Next Tie::File 5

How do I change one line in a file?

        tie @LINE, 'Tie::File', 'my_file.txt' or die ...;
        for (@LINE) {
          if (/not a text editor/) {
            s/not/now/;
            last;
          }
        }


Next . Copyright © 2002 M. J. Dominus