samira_saber has asked for the wisdom of the Perl Monks concerning the following question:
I have a problem with the sed command in perl
system( q {sed -i — "s/SOL..............*/SOL $sol1/g" topol1.top});
this is the command that i have. I know that i should use double coat and backslash for the variable to be run. But it cant be run and if it is the variable cant be printed. How should I use it?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: sed command with variable in perl
by AnomalousMonk (Archbishop) on Aug 14, 2017 at 21:40 UTC | |
Re: sed command with variable in perl
by ww (Archbishop) on Aug 14, 2017 at 20:07 UTC | |
by BillKSmith (Monsignor) on Aug 15, 2017 at 13:35 UTC | |
Re: sed command with variable in perl
by samira_saber (Novice) on Aug 15, 2017 at 18:28 UTC | |
by AnomalousMonk (Archbishop) on Aug 16, 2017 at 00:16 UTC | |
by samira_saber (Novice) on Aug 16, 2017 at 05:14 UTC | |
by poj (Abbot) on Aug 16, 2017 at 09:51 UTC | |
by samira_saber (Novice) on Aug 16, 2017 at 10:31 UTC | |
|
Back to
Seekers of Perl Wisdom