-----Original Message-----
From: Murphy, Ged (Bolton) [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 20, 2004 8:15 AM
To: '[EMAIL PROTECTED]'
Subject: executing 1 liners from cmd prompt

Hi all,

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.

Thanks.

Aren't you missing a ";". I am assuming that perl in both environments would
be the same; therefore, your command would look as follows:

C:\perl>perl -e 'print "test\n";' instead of C:\perl>perl -e 'print
"test\n"'

HTH, someone please correct me if operating environments are different.

Thanks,
John



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