Greetings; I copy/pasted your script into EDIT running in a DOS box on NT 4.0 and it works fine. I am using Active Perl. Do any Perl things work on your system?
Try typing it in from scratch using some vanilla editor like DOS EDIT or notepad (not wordpad!) and see if that makes a diff. You may have fat-fingered some non-text characters into the script somewhere. Good Luck! Dennis >}On Jan 15, 15:36, "Naveen Parmar" wrote: >} Subject: Bareword >The following error occurs on my Windows ME machine: > >Bareword found where operator expected at c:\myperl\hello.pl line 3"" > >(missing operator before r?) >Bareword found where operator expected at c:\myperl\hello.pl line 3"" > >WHEN EXECUTING THIS PERL SCRIPT > >#!/usr/bin/perl ># Filename: first_script.pl >print "My first Perl script.\n"; > >Any ideas? > >TIA, >- NP > >_________________________________________________________________ >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] > >}-- End of excerpt from "Naveen Parmar" -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]