Re: -e switch is not working on Window 7 and 8

2014-07-20 Thread Shaji Kalidasan
Dear Purvee, Here is one way to do it #Approach 1 [code] perl -e "print qq{Hello\n}" [/code] [output] Hello [/output] Please note: qq stands for double quotes #Approach 2 [code] perl -e "print 'Hello'" [/code] [output] Hello [/output] On Mon, Jul 21, 2014 at 10:54 AM, Purvee Vora wrote

Re: -e switch is not working on Window 7 and 8

2014-07-20 Thread WFB
Hi Purvee, perl -e 'xyz' works fine on Unix, however on Windows you must use " instead. perl -e "print qq(Hello \n)" greetings, wolf On 21 July 2014 07:24, Purvee Vora wrote: > Hi All, > > I am currently learing perl and was trying command line switches but It is > not working in window7 and

-e switch is not working on Window 7 and 8

2014-07-20 Thread Purvee Vora
Hi All, I am currently learing perl and was trying command line switches but It is not working in window7 and 8. Can any one help me out about this. I am really stuck here. I tried following example: perl -e 'print "Hello \n";' Commnad line shows blank response. I cannot see "Hello" world on