Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > unable to use perl on windows

Reply
Thread Tools

unable to use perl on windows

 
 
pc
Guest
Posts: n/a
 
      08-15-2007
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

 
Reply With Quote
 
 
 
 
Paul Lalli
Guest
Posts: n/a
 
      08-15-2007
On Aug 15, 2:12 pm, pc <chavanpr...@gmail.com> 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

 
Reply With Quote
 
 
 
 
googler
Guest
Posts: n/a
 
      08-15-2007
On Aug 15, 1:12 pm, pc <chavanpr...@gmail.com> 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?

 
Reply With Quote
 
pc
Guest
Posts: n/a
 
      08-16-2007
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.

 
Reply With Quote
 
Sisyphus
Guest
Posts: n/a
 
      08-16-2007

"pc" <> wrote in message
news: ups.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

 
Reply With Quote
 
Paul Lalli
Guest
Posts: n/a
 
      08-16-2007
On Aug 15, 8:17 pm, pc <chavanpr...@gmail.com> 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

 
Reply With Quote
 
pc
Guest
Posts: n/a
 
      08-16-2007
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

 
Reply With Quote
 
googler
Guest
Posts: n/a
 
      08-16-2007
On Aug 15, 8:18 pm, pc <chavanpr...@gmail.com> 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.

 
Reply With Quote
 
Ayaz Ahmed Khan
Guest
Posts: n/a
 
      08-16-2007
"googler" typed:
> pc <chavanpr...@gmail.com> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveState Perl and MinGW [was: Perl 5.14 Windows Strawberry Perl 64 bits] Dilbert Perl Misc 0 11-10-2011 02:20 PM
Unable to access HDD / Windows unable to complete format rmundy Hardware 1 08-13-2010 08:57 AM
Perl on Windows - use Perl as DLL Snorik Perl Misc 4 08-29-2009 03:26 PM
unable to use @ARG in Perl ragavendran31@gmail.com Perl Misc 4 12-02-2006 09:00 AM
Perl Help - Windows Perl script accessing a Unix perl Script dpackwood Perl 3 09-30-2003 02:56 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57