Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Urgent: help needed : "Problem with double quotes"

Reply
Thread Tools

Urgent: help needed : "Problem with double quotes"

 
 
Ramki
Guest
Posts: n/a
 
      02-10-2004
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
 
Reply With Quote
 
 
 
 
Ben Morrow
Guest
Posts: n/a
 
      02-10-2004

(Ramki) wrote:
> 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

--
"The Earth is degenerating these days. Bribery and corruption abound.
Children no longer mind their parents, every man wants to write a book,
and it is evident that the end of the world is fast approaching."
-Assyrian stone tablet, c.2800 BC
 
Reply With Quote
 
 
 
 
Tad McClellan
Guest
Posts: n/a
 
      02-10-2004
Ramki <> wrote:

> I know it
> is not a perl problem,



Then you are in the wrong place.

We discuss Perl problems here in the Perl newsgroup.


--
Tad McClellan SGML consulting
Perl programming
Fort Worth, Texas
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
from List <double> to double[] Web learner ASP .Net 3 04-26-2006 05:26 PM
Should I be concerned about buying DVD18s (Double-sided, double-layered) The Man With No Name DVD Video 3 02-04-2006 01:45 AM
cannot convert parameter from 'double (double)' to 'double (__cdecl *)(double)' error Sydex C++ 12 02-17-2005 06:30 PM
Double double display display problem problem Tom Accuosti Firefox 3 09-27-2004 10:02 PM
Help: Double convert to Integer and Double.... da Vinci C++ 5 07-31-2004 12:35 AM



Advertisments