rameshbhats
Technical User
Hi,
I am writing a perl script where in I need to print "backslash(\)" in the terminal. This is not being possible for me as \ is considered as escape character.
Following the output requirement
Hi This is ramesh \
typing this question \
But if I write following code
print "Hi This is ramesh \\n"
print "typing this question \\n"
I get
Hi This is ramesh \n
typing this question \n
The requirement is such that there should not be any space between \ & end of line.
Please guide me on this.
Thanks in advance
Ramesh
I am writing a perl script where in I need to print "backslash(\)" in the terminal. This is not being possible for me as \ is considered as escape character.
Following the output requirement
Hi This is ramesh \
typing this question \
But if I write following code
print "Hi This is ramesh \\n"
print "typing this question \\n"
I get
Hi This is ramesh \n
typing this question \n
The requirement is such that there should not be any space between \ & end of line.
Please guide me on this.
Thanks in advance
Ramesh