Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
(Challenge)(for new users) Replacing a textby theroninwins (Friar) |
on Sep 24, 2004 at 09:38 UTC ( [id://393430]=perlquestion: print w/replies, xml ) | Need Help?? |
theroninwins has asked for the wisdom of the Perl Monks concerning the following question:
Ok I found this little golf challenge on the net and would like to see how it can be solved.... then again i guess it will be fun for you all to try it. Write a command-line Perl program to replace every occurance of 'Will Emigh' (exactly like that) with 'YAPH Emigh' in a given file. Hint: look at the -i command-line flag. Update: thanks to castaway who told me that this here is not difficult I have to mention that this challenge was given by a University to test there best Perl users..... sorry about this I thought I would be more difficult. the goal is to have the shortest answer.
Back to
Seekers of Perl Wisdom
|
|