Help with <<-EOF

M

Mario Ruiz

Hi,

I have a piece of code like:
xmlData=<<-EOF
xml code
EOF

I need to change it into:
xmlData="
xml code
"

but I don't know why... it doesn't work when I change it into a normal
string.

Any idea?
 
E

Eleanor McHugh

Hi,

I have a piece of code like:
xmlData=<<-EOF
xml code
EOF

I need to change it into:
xmlData="
xml code
"

but I don't know why... it doesn't work when I change it into a normal
string.

Any idea?

Are you escaping all double quotes in the string?
Also, why do you need to make the change?


Ellie

Eleanor McHugh
Games With Brains
http://slides.games-with-brains.net
 
M

Mario Ruiz

There are no double quotes...

I need to do it because is a requirement from the client :(
(all string should be assigned by ")
 
M

Mario Ruiz

Ok... I did it.
I think the problem was a special character at the beginning of the
string.
Thanks for your time.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top