xiaoyafeng has asked for the wisdom of the Perl Monks concerning the following question:
hi monks,
I intend to transfer a series of powershell scripts for creating database into perl script. but I'm stuck in replace of backslash.
take a look below commandsI'm surprised to find out almost the same command has different outcome. it doesn't work in perl, but does in shell.part of conf file ########################################### # Diagnostics and Statistics ########################################### background_dump_dest=%ORACLE_BASE%\admin\%ORACLE_SID%\bdump core_dump_dest=%ORACLE_BASE%\admin\%ORACLE_SID%\cdump #timed_statistics=TRUE user_dump_dest=%ORACLE_BASE%\admin\%ORACLE_SID%\udump command: in perl: `psed -e 's/\\/\//gp' init10CONVERGE.ora > init10CONVERGE.ora_for_unix +`; in shell: psed -e 's/\\/\//gp' init.ora > init.ora_for_unix`;
Any suggestions? I've tried single quote, double quote, q{} etc, but seems not very helpful.
I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: what difference does a command run in shell and in perl
by BrowserUk (Patriarch) on May 22, 2011 at 05:34 UTC | |
by xiaoyafeng (Deacon) on May 22, 2011 at 05:58 UTC | |
|
Re: what difference does a command run in shell and in perl
by rgcosma (Beadle) on May 22, 2011 at 10:42 UTC | |
|
Re: what difference does a command run in shell and in perl
by Gulliver (Monk) on May 22, 2011 at 14:53 UTC |