CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Win32 Programming Help:
can't open perl script - no such file or directory



Jul 19, 2009, 3:28 PM

Post #1 of 2 (6851 views)
can't open perl script - no such file or directory Can't Post


I just installed ActivePerl on my Windows Vista 64 bit machine. When I execute the sample mentioned in the ActivePerl User Guide - perl - I get the message "can't open perl script no such file or directory". I get the same when I try to execute the hello program, which I added to the C:\Perl\bin directory. I have seen a number of questions about this issue on Google, but no answers that address my problem. When I issue "perl -v", I see

This is perl, v5.10.0 built for MSWin32-x86-multi-thread
(with 9 registered patches, see perl -V for more detail)

Copyright 1987-2007, Larry Wall

Binary build 1005 [290470] provided by ActiveState
Built May 24 2009 12:17:36

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at, the Perl Home Page.

When I issue "Path", I see

em32\Wbem;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program
Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files (x86)\Qu

I can understand why, which is in C:\Perl\eg fails to be found, but, as I have said, sits in C:\Perl\bin.

I would appreciate any help with this matter.

Thanks in advance,



Jul 19, 2009, 4:30 PM

Post #2 of 2 (6849 views)
Re: [s660117] can't open perl script - no such file or directory [In reply to] Can't Post

I'm embarassed to say that I just discovered my error. I had created my hello program with notepad and saved it as, which, of course, caused it to be saved as Once I renamed the file, it worked as expected.



Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives