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

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to