Re: Executing perl code on the command line

2005-03-13 Thread Hendrik Maryns
Gomez, Juan schreef: Single quotations? Those are for Unix/Linux perl only For windows we have to stick to double qoutation marks --well that's what I remmeber from quigley's book (Perl by example) :o) Indeed, read perldoc perlrun, especially the part about #! H. -- Hendrik Maryns Interesting w

RE: Executing perl code on the command line

2005-03-12 Thread Gomez, Juan
2:15 PM To: Perl Beginners List Cc: Gomez, Juan Subject: Re: Executing perl code on the command line Hi, perl -e "print qq(Hello\n)" works fine for me. What does not work is : perl -e 'print qq(Hello\n)' - Original Message - From: "Gomez, Juan" <[EMAIL

Re: Executing perl code on the command line

2005-03-12 Thread renard
"Bakken, Luke" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, March 12, 2005 10:40 AM Subject: RE: Executing perl code on the command line Hi !!! For me the line work here: C:\>perl -e "print qq(Hello\n)" Hello C:\>perl -e"print qq(Hello\

RE: Executing perl code on the command line

2005-03-12 Thread Gomez, Juan
Saturday, March 12, 2005 9:24 AM To: Perl Beginners List Cc: Bakken, Luke; [EMAIL PROTECTED] Subject: Re: Executing perl code on the command line 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

Re: Executing perl code on the command line

2005-03-12 Thread renard
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" Sent: Friday, March 11, 2005 10:52 AM Subject: RE: Exec

Re: Executing perl code on the command line

2005-03-11 Thread perlmails
- Original Message - From: "renard" <[EMAIL PROTECTED]> To: "Perl Beginners List" Sent: Friday, March 11, 2005 9:23 AM Subject: Executing perl code on the command line I am running ActivePerl 5.8.6 on Windows XP. I am unable to execute a statement like -- perl -e '' -- I always get th

RE: Executing perl code on the command line

2005-03-11 Thread Bakken, Luke
> I am unable to execute a statement like -- perl -e '' -- > 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

Re: Executing perl code on the command line

2005-03-11 Thread Alfred Vahau
Like: perl -e "print \"Hello World!\n\";" alfred, renard wrote: I am running ActivePerl 5.8.6 on Windows XP. I am unable to execute a statement like -- perl -e '' -- I always get this response: Can't find string terminator "'" anywhere before EOF at -e line 1. Does not matter if I use (', ", or