in reply to Re: How to write at immediate next line of detecting a particular pattern
in thread How to write at immediate next line of detecting a particular pattern
holy moly ... "wire", jeez I'm confused
anyway, See get n lines before or after a pattern, Re: modifying a file with regex!, perlintro, open, readline, rename, Re^5: Remove a Line, perlintro, open, close, readline, rename, Re: Rewriting into file, Re^2: Write to existing file with character insert
Modifying an existing file is three steps :)
perlintro covers all three steps, as does Modern Perl and http://learn.perl.org/books/beginning-perl/
Path::Tiny makes it even easier to work with paths
|
|---|