-----Original Message-----
From: Gunnar Hjalmarsson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 20, 2004 8:18 AM
To: [EMAIL PROTECTED]
Subject: Re: executing 1 liners from cmd prompt
Ged Murphy wrote:
> How do you execute 1 liners from the windows command prompt similar to
> perl -e 'print "test\n";'
> that we run in unix like systems?
>
> Every time I try something along these lines I get the following error
>
> C:\perl>perl -e 'print "test\n"'
> Can't find string terminator "'" anywhere before EOF at -e line 1.
You can't use "'" as delimiter on Windows. Try:
perl -e "print \"test\n\""
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
Thank you for the clarification.
Cheers,
John
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>