(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