Answer for Ch. 9, Ex 3 of Learning Perl
Answer for Ch. 9, Ex 3 of Learning Perl

Modify the previous program to change every Fred to Wilma and every
Wilma to Fred. Now input like fred&wilma should look like Wilma&Fred in
the output.

For some reason I didn't think at all to use a placeholder in the
string. I had a complicated pattern worked up where I was trying to save
the found result in named variables, and subbing back in, and I realized
there was no way it would work. So, I peeked.

/rs.

ruddystream/Learning-Perl,ruddystream/Learning-Perl