Parham has asked for the wisdom of the Perl Monks concerning the following question:
but this won't work:$text = 'abcdefghijklmnopqrstuvwxyz'; $text =~ tr/abc/@b©/; print $text;
i thought the comma's would help, but they didn't. Any help?$text = 'abcdefghijklmnopqrstuvwxyz'; $text =~ tr^m,n^|\/|,/\/^; print $text;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 1: Replace all at once
by tilly (Archbishop) on Dec 08, 2001 at 23:12 UTC | |
by japhy (Canon) on Dec 09, 2001 at 00:15 UTC | |
by dragonchild (Archbishop) on Dec 10, 2001 at 19:26 UTC | |
by japhy (Canon) on Dec 10, 2001 at 19:39 UTC | |
|
Re: Replace all at once
by Beatnik (Parson) on Dec 08, 2001 at 22:55 UTC | |
|
Re: Replace all at once
by dws (Chancellor) on Dec 08, 2001 at 22:55 UTC |