Urgent: help needed : "Problem with double quotes"

R

Ramki

Hi,
I want to call a PERL program from MS-DOS batch file.
Following is just an example, the string may inturn have double quote
or single quote.
I can't call with arg1, arg2 etc, as the input will be dyanamic.

My argument may be something like this "204.120.69.195" "-""-" 'xyz'
"GET"

Perl should receive the whole string as a single argument. I know it
is not a perl problem, From MS-DOS how can I

sent it so that perl program treats it as a single argument.

Can you please tell me how I could send the whole thing as a single
argument to the PERL program.

If give the solution, I would be really grateful to you.

Thanks & regards,
Ramki
 
B

Ben Morrow

Hi,
I want to call a PERL

Perl is not a nacronym.
program from MS-DOS batch file.
Following is just an example, the string may inturn have double quote
or single quote.
I can't call with arg1, arg2 etc, as the input will be dyanamic.

How are you producing this batch file? With another Perl script?
My argument may be something like this "204.120.69.195" "-""-" 'xyz'
"GET"

Perl should receive the whole string as a single argument. I know it
is not a perl problem, From MS-DOS how can I
sent it so that perl program treats it as a single argument.

perl program "\"204.120.69.195\" \"-\"\"-\" 'xyz' \"GET\""

I would suggest you write the info to a file somewhere, and pass that
to Perl to read. It's likely to be easier.

Ben
 

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,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top