944,188 Members | Top Members by Rank

Ad:
  • Perl Discussion Thread
  • Unsolved
  • Views: 8946
  • Perl RSS
Jun 21st, 2005
0

I get the error no file or directory when i try to run a perl script

Expand Post »
I am new to the perl language and had just started reading the book "Perl5 by example" by David Meddinets.However in the very first chapter he says that you need to try out the programs on a perl interpreter.I have w98 and have downloaded the asi version of 5.8.7 from activestate.com and extracted using winzip.I also get the reply at command prompt after typing perl -v.I have made the addition of .pl in openwith command.I get the perl icon when i designate a script as ".pl".But When i try to run the perl script using c:\activeperl\perl\bin\perl.exe myfile.pl (which contains the basic print command),i get an error as " open the perl script:myfile.pl:no such file or directory".Also i cannot run cmd on run of w98.Why is that so?Please help me out.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
nileshdalvi is offline Offline
6 posts
since Jun 2005
Jun 22nd, 2005
0

Re: I get the error no file or directory when i try to run a perl script

I've put screenshots showing how i run a script called getmap.pl on my win98 machine:

http://plh.org/getmap.jpg for start/run window
http://plh.org/msdos.jpg for msdos window

I added the die here line to stop all the debugging info from scrolling the command line off the screen =)
Reputation Points: 11
Solved Threads: 0
Newbie Poster
kordaff is offline Offline
20 posts
since Jun 2005
Dec 21st, 2005
0

Re: I get the error no file or directory when i try to run a perl script

Quote originally posted by nileshdalvi ...
I am new to the perl language and had just started reading the book "Perl5 by example" by David Meddinets.However in the very first chapter he says that you need to try out the programs on a perl interpreter.I have w98 and have downloaded the asi version of 5.8.7 from activestate.com and extracted using winzip.I also get the reply at command prompt after typing perl -v.I have made the addition of .pl in openwith command.I get the perl icon when i designate a script as ".pl".But When i try to run the perl script using c:\activeperl\perl\bin\perl.exe myfile.pl (which contains the basic print command),i get an error as " open the perl script:myfile.pl:no such file or directory".Also i cannot run cmd on run of w98.Why is that so?Please help me out.
Hi,
Its Rajashekhar Managoli.
you just type perl and filemane.pl if this file in curent dir if not full path of that it will excute.

Njoy
Raj
Reputation Points: 10
Solved Threads: 0
Newbie Poster
raj_mangoli is offline Offline
1 posts
since Oct 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Perl Forum Timeline: Fields in HTML Form
Next Thread in Perl Forum Timeline: Regexp





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC