markcsmith has asked for the wisdom of the Perl Monks concerning the following question:
in one line instead of 3. Is my memory decieving me, or is this really possible? I'm tired of the clukniness that the former method requires. Thanks!$a = "blah bla blah"; $b = $b; $b = s!blah (bla) blah!$1!;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: simple replace
by belg4mit (Prior) on Sep 20, 2002 at 18:34 UTC | |
|
Re: simple replace
by Anonymous Monk on Sep 20, 2002 at 18:36 UTC | |
|
Re: simple replace
by csotzing (Sexton) on Sep 20, 2002 at 18:40 UTC |