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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

 



s660117
User

Jul 19, 2009, 3:28 PM

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

Hi,

I just installed ActivePerl on my Windows Vista 64 bit machine. When I execute the sample mentioned in the ActivePerl User Guide - perl example.pl - I get the message "can't open perl script example.pl: 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 http://www.ActiveState.com
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 http://www.perl.org/, the Perl Home Page.

When I issue "Path", I see

PATH=C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\Syst
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
ickTime\QTSystem\

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

I would appreciate any help with this matter.

Thanks in advance,

s660117


s660117
User

Jul 19, 2009, 4:30 PM

Post #2 of 2 (4904 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 hello.pl, which, of course, caused it to be saved as hello.pl.txt. Once I renamed the file, it worked as expected.

s660117

 
 


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

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