Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > 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
 
 
 
 
Digitlcoup
Guest
Posts: n/a
 
      02-10-2004
In article < >, Ramki wrote:
> 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


Use escape characters example print("204.120.69.195 \"-\"\"-\" \'xyz\'
\"GET\""); assuming you needed all those quotes.

--
Hackattack v1.1 Download: http://www.digitlcoup.org/
 
Reply With Quote
 
 
 
 
Digitlcoup
Guest
Posts: n/a
 
      02-10-2004
In article <>, Digitlcoup wrote:
> In article < >, Ramki wrote:
>> 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

>
> Use escape characters example print("204.120.69.195 \"-\"\"-\" \'xyz\'
> \"GET\""); assuming you needed all those quotes.
>


Oh and if you are saying that you want to concatonate arguments, then
simply ar1 . arg2 would work

--
Hackattack v1.1 Download: http://www.digitlcoup.org/
 
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
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57