unable to use perl on windows

P

pc

Hi,I have downloaded and installed active perl.Its in C:/Perl .The
path c:/perl/bin is present in my path variable but still when I type
perl in C: the command is not recognized.However, if i change
directory to c:/perl/bin and type perl it works.Can some one tell me
why I am not able to execute perl from c: even though the path
variable is updated?


PC
 
P

Paul Lalli

Hi,I have downloaded and installed active perl.Its in C:/Perl .The
path c:/perl/bin is present in my path variable but still when I type
perl in C: the command is not recognized.However, if i change
directory to c:/perl/bin and type perl it works.Can some one tell me
why I am not able to execute perl from c: even though the path
variable is updated?

What leads you to believe that C:/perl/bin is in your path? The fact
that cmd.exe can't find a program that's in that directory when you're
not in that directory suggests that it's not in your path.

If you updated your path while you had a command window open, that
command window's path will not be updated to reflect the changes.
Close the window and reopen it.

Paul Lalli
 
G

googler

Hi,I have downloaded and installed active perl.Its in C:/Perl .The
path c:/perl/bin is present in my path variable but still when I type
perl in C: the command is not recognized.

Do you have only one environment variable for path? Is it called Path
or PATH?
 
P

pc

Hi Paula and Googler,

I am sure that the Path is set because I chekced it in My Computer--
Advanced-->Environment variables .I see that there is a variable
"Path" which contains c:/perl/bin in it.
 
S

Sisyphus

pc said:
Hi Paula and Googler,

I am sure that the Path is set because I chekced it in My Computer--
"Path" which contains c:/perl/bin in it.

At the command prompt, enter:
path

If the output doesn't contain C:\perl\bin, then there's your answer.
If the output *does* contain C:\perl\bin, then please post a copy'n'paste of
that output so that we can peruse it.

I believe that none of us (including me) have ever come across a situation
where the claim you are making is correct.

Cheers,
Rob
 
P

Paul Lalli

Hi Paula and Googler,

Paula is a female's name. My name is Paul.
I am sure that the Path is set because I chekced it in My Computer-->Advanced-->Environment variables .I see that there is a variable

"Path" which contains c:/perl/bin in it.

Does it actually contain exactly that, or does it contain the correct
C:\perl\bin?

Paul lalli
 
P

pc

Hi,

Paul-Sorry for typing your name wrong.
I changed the direction of the slash from / to \ and its working fine
now.
Thank you Paul,Rob,Googler for your help
 
G

googler

Hi,

Paul-Sorry for typing your name wrong.
I changed the direction of the slash from / to \ and its working fine
now.
Thank you Paul,Rob,Googler for your help

That's a bit strange. I did see that you were using / instead of \ in
your path name, but I thought that Windows usually accepts / too. In
fact I changed my Path environment variable to use / and the 'perl'
command still worked for me. So I didn't point this out. I guess this
must be due to different versions of the OS.
 
A

Ayaz Ahmed Khan

"googler" typed:
That's a bit strange. I did see that you were using / instead of \ in
your path name, but I thought that Windows usually accepts / too. In
fact I changed my Path environment variable to use / and the 'perl'
command still worked for me. So I didn't point this out. I guess this
must be due to different versions of the OS.

I bet the OP unwittingly fixed the PATH while re-typing it to use
backslashes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top