Having a gander at How do I post a question effectively? and How (Not) To Ask A Question might help you help us help you :)while(<$in>){ print $out $_; if( /word/ ){ print $out scalar <$in>, "APPEND"; } } close $in; close $out; rename $outfile, $infile;
In reply to Re^3: search for string append in file
by Anonymous Monk
in thread search for string append in file
by Bronston
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |