unable to use perl on windows

unable to use perl on windows

am 15.08.2007 20:12:54 von 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

Re: unable to use perl on windows

am 15.08.2007 20:45:32 von Paul Lalli

On Aug 15, 2:12 pm, pc wrote:
> 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

Re: unable to use perl on windows

am 15.08.2007 23:15:49 von googler

On Aug 15, 1:12 pm, pc wrote:
> 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?

Re: unable to use perl on windows

am 16.08.2007 02:17:01 von 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.

Re: unable to use perl on windows

am 16.08.2007 02:40:16 von Sisyphus

"pc" wrote in message
news:1187223421.826397.19720@x35g2000prf.googlegroups.com...
> 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.
>

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

Re: unable to use perl on windows

am 16.08.2007 02:58:10 von Paul Lalli

On Aug 15, 8:17 pm, pc wrote:
> 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

Re: unable to use perl on windows

am 16.08.2007 03:18:21 von 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

Re: unable to use perl on windows

am 16.08.2007 06:16:23 von googler

On Aug 15, 8:18 pm, pc wrote:
> 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.

Re: unable to use perl on windows

am 16.08.2007 11:56:14 von Ayaz Ahmed Khan

"googler" typed:
> pc wrote:
>> 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.

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

--
Ayaz Ahmed Khan

Re: unable to use perl on windows

am 16.08.2007 13:50:27 von Michele Dondi

On Wed, 15 Aug 2007 21:16:23 -0700, googler
wrote:

>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

Windows API's accept both. But on the command line they do not work
the same. Appearently a PATH specification is another such case, at
least under some releases of "OS"! ;-)


Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^ ..'KYU;*EVH[.FHF2W+#"\Z*5TI/ER 256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,