in reply to Re: sed command with variable in perl
in thread sed command with variable in perl
Hi samira_saber. First things first: Please edit your reply to add code tags around your code! Please see Markup in the Monastery and Writeup Formatting Tips; also see How do I change/delete my post? for general node-editing etiquette.
Some comments (in no particular order):
... it is not working ...This is almost useless as a problem description. What is "it"? Is it the code you have posted? How does it not work? Is there an error or warning message or messages? Under what conditions of input, etc., etc.? (Later in your reply you write "... before that i read the variable from the text file and print it and it worked." I don't understand this statement, especially in the context of your statement that "it" is not working.)
... i omitted the line for the $sol.In my original code, the my variable $sol1 holds the string to be substituted in the s/// substitution operation.
... it is not working ... I down know why ...This is always useful: Basic debugging checklist.
I hope these comments will be helpful. If you have any questions, please don't hesitate to ask.
Give a man a fish: <%-{-{-{-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: sed command with variable in perl
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 | |
by AnomalousMonk (Archbishop) on Aug 16, 2017 at 16:45 UTC |