skerr1 has asked for the wisdom of the Perl Monks concerning the following question:
Hello Folks,
On a SunOS 5.6 machine running Perl 5.6.1
From the command line I want to execute a perl inline replace where I want to replace the found text with the execution results of the found text. So I want to search for "cmd" and replace it with the results of executing "cmd". Here is the code I've been playing with unsuccessfully:
Help is appreciated.
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl inline replace with execution results
by Zaxo (Archbishop) on Oct 23, 2005 at 06:04 UTC | |
by skerr1 (Sexton) on Oct 23, 2005 at 13:26 UTC | |
|
Re: Perl inline replace with execution results
by sk (Curate) on Oct 23, 2005 at 05:39 UTC |