Thank you. your methods work fine.
I do wonder ... I have seen and tried command line perl code examples from this mailing list that did not have quotes for print statements.
On my computer they did not work.. Is this specific to Windows XP and ActivePerl? Or was it untested code?
PS: using single quote around the perl code fails...need to use double quotes.
----- Original Message ----- From: "Bakken, Luke" <[EMAIL PROTECTED]>
To: "renard" <[EMAIL PROTECTED]>; "Perl Beginners List" <beginners@perl.org>
Sent: Friday, March 11, 2005 10:52 AM
Subject: RE: Executing perl code on the command line
I am unable to execute a statement like -- perl -e '<perl code>' -- I always get this response: Can't find string terminator "'" anywhere before EOF at -e line 1.
From the command line, use " " to quote your code and qq() or q() as
quotes inside your code:
c:\>perl -e"print qq(Hello\n)"
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>