Hi David - You are a star, It worked !!!! Yippee !!!! So I realise that I have to have: #!D:\Perl\bin\perl -w at the top of my perlscripts...
So if I am writing scripts on my server for the web - database access etc, do I have to use the <% and %> to embed my perl into my HTML ???? I have been learning perl using Web Space I have bought and I would like to continue writing my perl in the same manor, using: print<<"HTML"; <html>.... HTML etc... Can this be done in this fashion using perl on windows 2000 ????? Thanks a lot for your help, really really appreciated !!!!!! All the best Anadi >From: "David Kirol" <[EMAIL PROTECTED]> >To: "A Taylor" <[EMAIL PROTECTED]> >Subject: RE: running perl scripts on Windows >Date: Tue, 18 Jun 2002 11:11:27 -0400 > >Anadi, > Great! Choose your favorite editor, and copy/paste > >#!D:\Perl\bin\perl -w >print"Anadi's first perl script\n"; > >Then save the file as anadi.pl. Open a command prompt window, cd to the >directory where you saved the file then type >anadi.pl > >Let me know how you make out >-David > >-----Original Message----- >From: A Taylor [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, June 18, 2002 11:01 AM >To: [EMAIL PROTECTED] >Cc: [EMAIL PROTECTED] >Subject: RE: running perl scripts on Windows > > >Hi David, >I have found the 'File Types' and the path was already set to: >D:\perl\bin\perl.exe %1 %* >but this command line doesn't work: >perl -e 'print"It worked\n";' >I get the same 'perl is not recognised as an internal or external command >.....' > >Any ideas ???? > >Cheers >Anadi > > > > >Anadi, > > > Let's tackle the command line issue first. > > >go to : > > >My Computer > > >View > > >Options > > >File Types > > >Find Perl, .pl extension in list > > >(if you cannot find a perl extension {.pl} you need to make a file > > >association, but activestate's installer should have done this for you) > > >Edit the file type > > >Edit the 'Open' action > > >Add (after C:\perl\bin\perl.exe) > > >%1 %* > > >so you have: > > >C:\perl\bin\perl.exe %1 %* > > >This will allow command line parameters to be passed to your perl > >scripts. > > >Open a dos window and try: > > >perl -e ' > > >print"It worked\n";' > > > > > >Let me know how you make out > > >-David > > >-----Original Message----- > > >From: A Taylor [mailto:[EMAIL PROTECTED]] > > >Sent: Tuesday, June 18, 2002 9:32 AM > > >To: [EMAIL PROTECTED] > > >Subject: running perl scripts on Windows > > > > > > > > >Hi all, > > >I am runing a windows 2000 server and I have just installed perl that I > >got > > >from ActiveState.com. I have been playing and have come up against a >few > > >problems. > > > > > >1) It seems that writing perl scripts with embedded HTML is more like > > >writing 'Microsoft Active Server Pages' in Perl, using <% and %> to >embed > > >the perl script. These scripts are then saved as .asp files. This is >not > > >what I am used to, is there any way I can write my usual perlscripts > > >(without using <% and %>) and save them as .pl, and then run that >script > >on > > >my Windows 200 server ????? > > > > > >2) The second problem I am up against is: It says in the setup >procedure > > >(at > > >www.activestate.com) that I should be able to run perl scripts from my > > >command prompt ????? I dont seem to be able to do this. > > > > > >Has any one any advise they can share ???? Any help would be much > > >appreciated as I am now past the 'Pulling my hair out' stage !!!! ;-( > > > > > >Thanks for all your help > > > > > >Anadi > > > > > >_________________________________________________________________ > > >Send and receive Hotmail on your mobile device: http://mobile.msn.com > > > > > > > > >-- > > >To unsubscribe, e-mail: [EMAIL PROTECTED] > > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > >_________________________________________________________________ > >Join the world’s largest e-mail service with MSN Hotmail. > >http://www.hotmail.com > > > > > > >_________________________________________________________________ >Send and receive Hotmail on your mobile device: http://mobile.msn.com > > _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]