On Mon, May 23, 2011 at 00:20, Gang Cheng <chenggan...@gmail.com> wrote: > hi, > > I instaled my perl under the e:\r_software\perl. > I wrote a hello world programme as below > > #! /usr/bin/perl > print “Hello,word!\n”; > > and save it under e:\ as perl.p1 > > but when I run it with the window commend line as > > > E:\ perl hello.p1 it told me that Can't open perl script " > hello.p1" No such file or directory!! > > how can I solve it thank you!!! >
"p1" is different than "pl". "pl" is the usual suffix chosen for perl programs. Try "perl hello.pl" after renaming your script to be "hello.pl". On UNIX/Linux systems you might get an error about the script not being executable, but that should not happen on Windoze. Perhaps Perl is not in your path? Try "\r_software\perl\bin\perl hel;lo.pl" if that is where the Perl binary is. Is this Strawberry Perl? Hope this helps, Ken Wolcott -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/