Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Writing into files and RegExpby PerlingTheUK (Hermit) |
on Mar 10, 2006 at 10:16 UTC ( [id://535650]=perlquestion: print w/replies, xml ) | Need Help?? |
PerlingTheUK has asked for the wisdom of the Perl Monks concerning the following question:
Dearest Monks
Please excuse the very general header but I am not sure as to where the actual problem is and therefore just list my two main suspects. I have a file with lines that need to be deleted. Each of these lines matches the pattern /^AB.*C$/. The whole code is:
While this is removing the lines I am looking for, it also seems to not fully write some of the not excluded lines and extends them by several thousand characters shown as '^@' in XEmacs. I am not sure what might cause this or where to start looking. Cheers, PerlingTheUK
Back to
Seekers of Perl Wisdom
|
|