Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
Featured Web Site Template

Hundreds More at Free Site Templates.com!

Web Site Partners
Sponsored Links
Jet City Software
 
Whos Here ?
Reflects user activity within the last 5 minutes
Moderator(s): Prowler, jcokos
Member Message

askjoe
Joined: Eons Ago
# Posts: 106

View the profile for askjoe Send askjoe a private message

Posted: 2004-May-02 15:09
Edit Message Delete Message Reply to this message

I've downloaded and installed Perl on my Win 98 machine..

When I type a script and save it, the script does not execute....(I've used perl before and know that the script is correct)

The command prompt doesn't seem to be recognizing '.pl' command. Also, I feel the path to the complier may be different.

Can you guys help me out here?



NEntropy
Joined: Dec 08, 1999
# Posts: 1117

View the profile for NEntropy Send NEntropy a private message

Posted: 2004-May-03 03:57
Edit Message Delete Message Reply to this message

If perl.exe is not within path, then you may have to type the full path to perl.exe before the file name. From within the command propmpt, you won't be able to just type in the script name and expect it to run.

So, instead of being able to run a script "script.pl" by typing "./script.pl", you may have to type something like "c:perlbinperl.exe script.pl"



Prowler
Staff
Joined: Aug 14, 2000
# Posts: 1788

View the profile for Prowler Send Prowler a private message

Posted: 2004-May-03 07:57
Edit Message Delete Message Reply to this message

If you have installed the Active Perl Version ( the current version is ActivePerl 5.8.3.809) through the regular Microsoft Windows (MSI) installer, this would have set the path pointing to the installed location and also 'associated' the file extensions *.pl, *.plex to the Perl binary.

The usual test to see if your Perl is accessible from your command line is type:
perl -V
which should display a screenful of details.

If this works ok and still you see that your *.pl extension does not invoke the Perl binary, then create the required association manually like so:
Windows Explorer -> Tools -> Folder Options - > File Types -> Create New Extension and add pl and the Opens with dialogue to point to the Perl binary.





askjoe
Joined: Eons Ago
# Posts: 106

View the profile for askjoe Send askjoe a private message

Posted: 2004-May-07 18:19
Edit Message Delete Message Reply to this message

"Windows Explorer -> Tools -> Folder Options - > File Types -> Create New Extension and add pl and the Opens with dialogue to point to the Perl binary."


Can someone explain the above a bit better.....where do I find this?

The patch to perl is all set......I still don't see what the problem is.



Prowler
Staff
Joined: Aug 14, 2000
# Posts: 1788

View the profile for Prowler Send Prowler a private message

Posted: 2004-May-08 10:15
Edit Message Delete Message Reply to this message

If you can run your Perl scripts from the command prompt from any directory, then it is certain that your path information is set correctly. May be you invoke your script like this:
c:perl my_script.pl

Now to set the Perl executable (binary) to fire up every time you call a file with the extension of *.pl or *.plx, you need to do:

Go to your Windows Explorer. Right Click on the Start button on the task bar and then select 'Explore'.
From the Explorer, go to 'Tools' option at the top. Proceed further as outlined.




You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
  1. You have not yet logged in, or registered properly as a member
  2. You are a member, but no longer have posting rights.
  3. This is a private forum, for which you do not have permissions.

If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

If you cannot find this message, click here to Re-Send it.

If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

New posts Forum is locked
© 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions