Problems? Is your data what you think it is? | |
PerlMonks |
Parsing each file of a directory to change once string instance to anotherby z28 (Sexton) |
on Mar 20, 2002 at 20:35 UTC ( [id://153120]=perlquestion: print w/replies, xml ) | Need Help?? |
z28 has asked for the wisdom of the Perl Monks concerning the following question:
Monks, I need you again in this hour, when this change is so critical, and my lunch break so near...
I loop through /home/onyx2/www/ and get all files with an .shtml extension. This works. I open every file, one at a time. This works. I run the regexp to change out foo-fuu.net with fuuonline.com and it does not work. What gives? Code below:
Back to
Seekers of Perl Wisdom
|
|