Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
How to replace only single character & to & where the output should look like#!/usr/bin/perl while(<DATA>){ print $_; } __DATA__ Hi & How r u " How r u & dear "
Hi & How r u " How r u & dear "
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: replace &
by moritz (Cardinal) on Aug 20, 2009 at 10:52 UTC | |
|
Re: replace &
by Sue D. Nymme (Monk) on Aug 20, 2009 at 12:27 UTC | |
|
Re: replace &
by JavaFan (Canon) on Aug 20, 2009 at 10:59 UTC | |
by Melly (Chaplain) on Aug 20, 2009 at 11:06 UTC |