it told me that Can"t open perl script " hello.p1" No such file or directory
it told me that Can"t open perl script " hello.p1" No such file or directory
am 23.05.2011 09:20:38 von Gang Cheng
--90e6ba53b070e6006704a3ec4e76
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
hi,
I instaled my perl under the e:\r_software\perl.
I wrote a hello world programme as below
#! /usr/bin/perl
print =93Hello,word!\n=94;
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!!!
--90e6ba53b070e6006704a3ec4e76--
Re: it told me that Can"t open perl script " hello.p1" No such file or directory
am 23.05.2011 09:27:54 von Mishustin Alexey
5/23/2011, "Gang Cheng" âû ïèñàëè:
>hi,
>
> I instaled my perl under the e:\r_software\perl.
> I wrote a hello world programme as below
>
>#! /usr/bin/perl
>print =93Hello,word!\n=94;
>
>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!!!
Maybe hello.pl, not hello.p1?
'pl' (abbreviated from 'Perl') is the common extension of perl
scripts.
--
Regards,
Alex
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/
Re: it told me that Can"t open perl script " hello.p1" No such fileor directory
am 23.05.2011 09:35:27 von Kenneth Wolcott
On Mon, May 23, 2011 at 00:20, Gang Cheng wrote:
> hi,
>
> =A0I instaled my perl under the e:\r_software\perl.
> =A0I wrote a hello world programme as below
>
> #! /usr/bin/perl
> print =93Hello,word!\n=94;
>
> and save it under e:\ as perl.p1
>
> but when I run it with the window commend line as
>
>
> E:\ perl hello.p1 =A0 =A0 =A0 =A0 it told me that Can't open perl script =
"
> hello.p1" =A0No such file or directory!!
>
> how can I solve it =A0thank 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-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/
Re: it told me that Can"t open perl script " hello.p1" No suchfile or directory
am 23.05.2011 10:03:29 von Thomas Lingmann
Hi,
you saved your script as 'perl.p1' but you run it as 'hello.p1'.
hth
* Gang Cheng [23.05.2011 09:30]:
> hi,
>=20
> I instaled my perl under the e:\r_software\perl.
> I wrote a hello world programme as below
>=20
> #! /usr/bin/perl
> print â=9CHello,word!\nâ=9D;
>=20
> and save it under e:\ as perl.p1
>=20
> but when I run it with the window commend line as
>=20
>=20
> E:\ perl hello.p1 it told me that Can't open perl script "
> hello.p1" No such file or directory!!
>=20
> how can I solve it thank you!!!
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/