Urgent: help needed : "Problem with double quotes"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ramki

    Urgent: help needed : "Problem with double quotes"

    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
  • Digitlcoup

    #2
    Re: Urgent: help needed : "Proble m with double quotes"

    In article <1ec14e93.04021 00933.31cb02b2@ posting.google. com>, Ramki wrote:[color=blue]
    > 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[/color]

    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/

    Comment

    • Digitlcoup

      #3
      Re: Urgent: help needed : &quot;Proble m with double quotes&quot;

      In article <eKGdnRwaz_WLg7 Td4p2dnA@comcas t.com>, Digitlcoup wrote:[color=blue]
      > In article <1ec14e93.04021 00933.31cb02b2@ posting.google. com>, Ramki wrote:[color=green]
      >> 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[/color]
      >
      > Use escape characters example print("204.120. 69.195 \"-\"\"-\" \'xyz\'
      > \"GET\""); assuming you needed all those quotes.
      >[/color]

      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/

      Comment

      Working...